@with, stylus

21 views
Skip to first unread message

step...@shimaore.net

unread,
Oct 28, 2012, 2:49:30 PM10/28/12
to zap...@googlegroups.com
Hi,

Doing a quick poll for a change in the API to see whether it's going to
have people in arms. :)

Basically I want to get your opinion on
https://github.com/zappajs/zappajs/commit/acc577129917da837bd670afbc35ea35d64216a7

This introduces two changes:
- `@stylus` is no longer present by default, you need to say you want to
use it.
- the weird `zappa.run css:'less'` type of options is replaced with a
new `@with css:'less'` command in your Zappa block.

Combining the two, if you use `@stylus` you need to add

@with css:'stylus'

to your callback, i.e.

zappa.run ->
@with css:'stylus'
@stylus '...'

If you use `@less` you need to add

@with css:'less'

to your callback; so instead of doing

zappa.run css:'less', ->
@less '...'

you would now do:

zappa.run ->
@with css:'less'
@less '...'


This change would get released in the next version of zappa (0.4.13).
S.

Karl

unread,
Oct 28, 2012, 5:40:35 PM10/28/12
to zap...@googlegroups.com
Hey,
perfectly fine with me, I just use the defaults. I think it is good to keep it very compact.
K.
Reply all
Reply to author
Forward
0 new messages