-
Notifications
You must be signed in to change notification settings - Fork 116
Open
Description
Consider the following:
Params.jet ->
{{ param1 := 1 }}
{{ param2 := 2 }}
{{ param3 := 3 }}
{{ param4 := 4 }}
then import Params.jet in another template.
SomeJetTemplate.jet ->
{{ import "Params.jet" }}
{{ "This is a string needing to use parameters : " + param1 }}
This throws a block level scope failure that param1 does not exist in the scope of the block...
Is there a way to load parameter configurations like this into other jet templates? Seems like this should work...
I do of course understand that parameters can be added to vars and imported into templates from compiled go code. However, we would like to remain dynamic and maintain the essence of Jet templates in that we could change the text i.e. the parameters on the fly without having to recompile go code.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels