Example of requiring and using font-awesome middleware to create compile function to utilize in other frameworks
I'm sorry if this is a noob question - I'm a noob in this realm. I'm new to stylus and font-awesome. I'm playing around with https://github.com/vuejs/vue-hackernews-2.0 and it uses stylus in the components.
I'm not clear how to use this in a project. Here are some of my questions:
Is the $fa-font = ... in a certain stylus file, or all of them?
The same with the code var fontAwesome = ..., function compile(str) { .... Do I need this always or only in certain situations. And where do I put it?
And for the usage - the example is fa(user) - can I combine other properties like those at http://fontawesome.io/examples/#basic - eg fa(user rotate-90 2x)
I'm sorry if this is a noob question - I'm a noob in this realm. I'm new to stylus and font-awesome. I'm playing around with https://github.com/vuejs/vue-hackernews-2.0 and it uses stylus in the components.
I'm not clear how to use this in a project. Here are some of my questions:
Is the
$fa-font = ...
in a certain stylus file, or all of them?The same with the code
var fontAwesome = ...
,function compile(str) { ....
Do I need this always or only in certain situations. And where do I put it?And for the usage - the example is
fa(user)
- can I combine other properties like those at http://fontawesome.io/examples/#basic - egfa(user rotate-90 2x)
a few full examples would really be helpful.