azium
azium

Reputation: 20614

Meteor + Stylus, is there a way to dynamically re-render my styl file?

I have a bunch of mixins that I use to very quickly build UIs. This works great when I modify the .styl file's global variables, but is there a way to pass a Session variable to my stylus variables then re-render the page?

Upvotes: 0

Views: 160

Answers (1)

Dan Dascalescu
Dan Dascalescu

Reputation: 151926

From what I can see, all stylus packages are pre-processors from stylus to CSS, and run before the server sends the client bundle (HTML+CSS+JS) down the wire.

You can try using Stylus like and 3rd party library directly on the client (see http://learnboost.github.io/stylus/docs/js.html) and changing the stylesheet dynamically.

Upvotes: 1

Related Questions