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

Integrate asset manager - Piler #95

Closed
wants to merge 5 commits into from

Conversation

esamattis
Copy link
Contributor

Hi!

This is again not a proper pull request and I don't expect it to be directly merged. Tests are not updated etc.

But anyway I integrated Piler with Zappa and I think it fits in very well as originally expected since many of the features in node-pile are originally inspired by Zappa :)

This would close issues #19, #79 and #94.

This changes the API for @client, @shared, @css and @stylus.

The API is now

@client mynamespace: -> alert "hello"

If you omit the namespace it will default to global namespace in node-pile

Script and style tags are rendered with renderStyleTags and renderScriptTags helpers. The global namespace is always rendered and others can be added as arguments. See this example

There are some issues when serving build-in assets and I think this should be rethought if we really integrate this. @enable 'server jquery' style does not work so nicely with this. I have been thinking of adding support for ender-js for node-pile which could resolve this issue nicely.

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

Successfully merging this pull request may close these issues.

2 participants