Skip to content

Commit

Permalink
feat(updater): add new filter/function find for tera.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfiaschi committed Jan 2, 2024
1 parent e95b3ed commit 430e2ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/updater/tera.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ impl Tera {
engine.register_filter("env", filters::string::set_env);
engine.register_function("env", function::string::env);
engine.register_function("get_env", function::string::env);
engine.register_function("find", function::string::find);
engine.register_filter("find", filters::string::find);
// faker
engine.register_function("fake_words", function::faker::words);
engine.register_function("fake_sentences", function::faker::sentences);
Expand Down

0 comments on commit 430e2ec

Please sign in to comment.