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

External module configurable in module.txt #38

Closed
andrewdavey opened this issue Aug 30, 2011 · 3 comments
Closed

External module configurable in module.txt #38

andrewdavey opened this issue Aug 30, 2011 · 3 comments

Comments

@andrewdavey
Copy link
Owner

Add support for external module config in module.txt

[external]
http://cdn.com/jquery.js

[assets]
jquery.js
@nazjunaid
Copy link
Contributor

Just a note maybe the txt should be something more structured like xml to support this and potentially other features in the future?

@andrewdavey
Copy link
Owner Author

I do like the simplicity of the plain text file, especially for when it is just a list of filenames. The INI style extensions add just enough extra control for now.

However, adding support for xml/yaml/json would be possible too.

@andrewdavey
Copy link
Owner Author

Going with the following syntax:

[external]
url = http://cdn.com/jquery.js
fallbackCondition = !window.jQuery

[assets]
jquery.js

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

2 participants