Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Whiskers Template Language

By: a guest on Sep 25th, 2013  |  syntax: None  |  size: 0.28 KB  |  views: 48  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }