-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't call functions defined in template from scuri:template:* #135
Comments
@danjor thanks for your support and active participation! This sounds like an annoying problem. Sorry, Handling it on SCuri's side would be much more difficult (update templates are executed in isolation from each other and the main template). |
Hello, I'm giving you another example with more details to try to be more precise : I have the following in my custom template
and I also have custom helper function defined in the custom template :
So I now want to use these functions in both directly from the custom template for the create (which already work), but also from all the scuri:template:* (does not work) :
One way to acheive this could be to give the schematic the ability for user to provide not only the custom template, but also another custom template dedicated to helpers functions. This one could be provided in both from a new argument of the schematic or in the config file. For this to work, you would need to provide all ejs with the template helper that contains custom functions, if that is possible ? |
Hello,
I need to use string helper functions to generate strings and have a custom template the way I want.
This said, I then have a lot of dupplicate code in my custom template.
So, I tried to define custom functions in my ejs template. For instance :
I can call them from everywhere but not from inside all scuri:template:*
I'm getting the following error :
ReferenceError: myCustomFunction is not defined
The text was updated successfully, but these errors were encountered: