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

Integration with css generation library #40

Open
sgtpep opened this issue May 28, 2011 · 3 comments
Open

Integration with css generation library #40

sgtpep opened this issue May 28, 2011 · 3 comments

Comments

@sgtpep
Copy link

sgtpep commented May 28, 2011

Zappa uses CoffeKup as default template engine. They fit into each other very well. It's a good idea that templates use the same language as server-sive (and client-side, too), dropping out another layer of abstraction such as some specific template syntax (or at least making it more transparent).
How about writing css the same way? There are a lot of fans of Stylus (http://learnboost.github.com/stylus/), and it's really cool. But I'd like to propose to integrate zappa with other cool, but less known, library https://github.com/aeosynth/ccss. It makes possible to write styles in CoffeeScript, so you will gain the same benefits the CoffeeKup gives. I already implemented it in my fork of zappa and can post the changesets.

@mauricemach
Copy link
Owner

That's very true. CCSS was actually born of a discussion on the pull request to add stylus support to it. Now in CoffeeKup I have concerns, especially about file size in the client side, and I think maybe these things should be available as plugins. But in zappa it's another story, it lives on the server so we don't have these constraints. One concern to me is namespace, but we can use configuration, or check if the modules are installed, and only provide the stylus and ccss functions if you're going to use them.

I'm about to publish a 0.2.0beta, and in the next iteration after it I'm definitely going to add this. I'll also check you guys' forks to see what else we can incorporate to the final 0.2.0.

By the way, very nice avatar! :)

@DAddYE
Copy link

DAddYE commented Jul 14, 2011

+1 for stylus

@mauricemach
Copy link
Owner

Added stylus support on 69d5e9b! See reference for usage.

For now it's builtin, in the future we may modularize these things à la Rails 3.

I'm gonna add ccss or coffee-css support too, just trying to figure out which one.

@mauricemach mauricemach reopened this Aug 4, 2011
Radagaisus referenced this issue in Radagaisus/zappajs Sep 8, 2012
Radagaisus referenced this issue in Radagaisus/zappajs Sep 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants