Skip to content

0.3.0 mixins

Ivan S Glazunov edited this page Feb 20, 2015 · 2 revisions

sources/mixins

Templates.mixins

.js

(src: string|function, ...arguments: Array<TSelector, TAttributes>) => this;

console.log(T.mixins.js('script.js'));
// <script type="text/javascript" src="script.js"></script>
console.log(T.mixins.js(function() {console.log();}));
// <script type="text/javascript">console.log();</script>

.css

(src: string, ...arguments: Array<TSelector, TAttributes>) => this;

console.log(T.mixins.css('style.css'));
// <link rel="stylesheet" href="style.css"/>
Clone this wiki locally