Skip to content
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

Plugin System Autoimport CSS and/or Javascript? #60

Open
choptastic opened this issue Sep 24, 2013 · 0 comments
Open

Plugin System Autoimport CSS and/or Javascript? #60

choptastic opened this issue Sep 24, 2013 · 0 comments

Comments

@choptastic
Copy link
Member

Right now, the plugin system autoimports the Erlang headers from each Nitrogen plugin, and it does copy the static resources, but it would be nice if it was intelligent enough to make a javascript or CSS file similar in nature to the plugins.hrl - one that automatically imports the CSS and javascript files from each plugin without having to manually reference them in your template.

The gotcha here is load order. To specify:

  • The easy one for loading the right files in order is load them in alphabetical order, and then can be specified like (01-myfile.js, 02-otherfile.js, etc).
  • Alternatively, it could be specified in the nitrogen.plugin file as a config, which would specify the load order, and any file not mentioned would not be auto-imported. This has the benefit of not requiring renaming any files.

Food for thought!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant