SHARE
TWEET

Whiskers Template Language

a guest Sep 25th, 2013 64 Never
  1. // Buttons
  2.  
  3. `btn {
  4.   if(%href){<a href="http://%href"}else{<span} class="if(%type){btn-%type} btn-if(%color){%color}else{grey}">if(%text){%text}else{Button}</if(%href){a}else{span}>
  5. }
  6.  
  7. `btn-large {
  8.   `btn{
  9.     type{large}
  10.     href{%href}
  11.     text{%text}
  12.     color{%color}
  13.   }
  14. }
RAW Paste Data
Top