letsgetrandy / DICSS

Directly injected CSS
http://letsgetrandy.github.io/DICSS/
MIT License
1.35k stars 72 forks source link

Can I combine DICSS with NUTS? #61

Closed MrMino closed 1 year ago

MrMino commented 8 years ago

Can I use DICSS script with NUTS templates?

reneroth commented 8 years ago

Sure, since NUTS simply returns the parsed string.

var template = 'transition 1s [:easing]';
var obj = {
    easing: 'ease-in-out'
};
var transition = nuts(template, obj);
DICSS.putIn('body', transition);
Cxarli commented 8 years ago

For those who like CoffeeScript more

template = 'transition 1s [:easing]'
obj = {
    easing: 'ease-in-out'
}
transition = nuts template, obj
DICSS.putIn 'body', transition