-
Notifications
You must be signed in to change notification settings - Fork 32
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
Load different JS files for each template #30
Comments
Of course it is ;) Although it's only barely touched in the View specific files chapter, which is probably why you missed it. You can have both page-specific CSS and JS files, by using the following name structure:
When initialising a new project, you will find dummy files for |
@nunodotferreira did you figure out how to make the page-specific assets work? |
Hi, the feature that you describe i'm already using it! That's not it. What i need is a solution to inject a specific js file in one specific html file. Not the main.js and not the page.js!? |
I don't think that's possible at the moment 😢 You could figure out a way around it such as placing your file in a new folder (eg. At some point it becomes too hard for me to provide a solution that takes into account every single use case. This (as was #15) is one of those cases. I'll tag it for the next release and see what I can do, but for now you'll have try using a non-intuitive way to get it done.. |
Good news @nunodotferreira, I have just found out that you can have page-specific lib files as well. I had never tried it before, but if you have for example Can you try this out and see if it resolves this issue? |
I'll try it in my new project to see if this works! |
@nunodotferreira Any news on this? I am wrapping up on v1.3, but I would like to have all the issues assigned to this milestone fixed first. I you haven't yet been able to check up on this, I will push this forwards to a next release so I can move on. |
apparently this works fine! |
Nice! Thanks for responding so fast :) |
Hi Flovan
i'm wondering if it's possible to load a js file in one html file and not to load to a different html file!?
like this
index.html -> load main.js --- with all the files in the libs folder
company.html -> load main.js and otherfile.js just for this html template!
The text was updated successfully, but these errors were encountered: