codepb/jquery-template

template to add css

Closed this issue · 2 comments

hi, i use this, to add css to the template, for me its very usefull maybe you want to add to the library
processElements("data-style", template, data, settings, function ($elem, value) {
$elem.css(applyFormatters($elem, value, "content", settings));
});

I would prefer not to add more specific properties to the template, but this is worth considering as it does provide a way to the .css function. I would prefer the name data-css for it rather than data-style as it is using the css property. If you submit a pull request with that I'll consider adding it.

I have just created a solution on #115