Skip to content

How we can make custom function to use on Tera? #1050

Closed Answered by kaplanelad
marciano0695 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

When creating a new project using loco new, navigate to the view_engine.rs file located in the src/initializers folder.

Within the mutable tera variable, you can append custom filters and functions to extend its functionality.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by marciano0695
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants