Skip to content

Commit

Permalink
fmt + changelog + updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Keats committed Feb 16, 2023
1 parent 84d057f commit d43b5e1
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 44 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ This will error if 2 values are set
- Add Elasticlunr JSON output for the search index
- Add sorting by slug for pages
- Enable locale date formatting for the Tera `date` filter
- Cachebust fingerprint is now only 20 chars long


## 0.16.1 (2022-08-14)
Expand Down
87 changes: 45 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions components/templates/src/global_fns/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,10 @@ title = "A title"
let mut args = HashMap::new();
args.insert("path".to_string(), to_value("app.css").unwrap());
args.insert("cachebust".to_string(), to_value(true).unwrap());
assert_eq!(static_fn.call(&args).unwrap(), "http://a-website.com/app.css?h=572e691dc68c3fcd653a");
assert_eq!(
static_fn.call(&args).unwrap(),
"http://a-website.com/app.css?h=572e691dc68c3fcd653a"
);
}

#[test]
Expand Down Expand Up @@ -335,7 +338,10 @@ title = "A title"
args.insert("path".to_string(), to_value("app.css").unwrap());
args.insert("trailing_slash".to_string(), to_value(true).unwrap());
args.insert("cachebust".to_string(), to_value(true).unwrap());
assert_eq!(static_fn.call(&args).unwrap(), "http://a-website.com/app.css/?h=572e691dc68c3fcd653a");
assert_eq!(
static_fn.call(&args).unwrap(),
"http://a-website.com/app.css/?h=572e691dc68c3fcd653a"
);
}

#[test]
Expand Down

0 comments on commit d43b5e1

Please sign in to comment.