tf

Simple functions for creating html tags

  • tf

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
tf
1.0.110 years ago10 years agoMinified + gzip package size for tf in KB

Readme

tf
Description
Simple functions for creating html tags
Latest Version
1.0.0
Installation
npm install tf --save

or in package.json
{
  ...
  "dependencies": {
    "tf": "~1.0.0"
  }
}
Usage
T = require('tf')

T.div(
  class : 'barf'
  $body : T.h1(
    class : 'wow'
    $body : "BORF"
  )
)

results in
<div class="barf"><h1 class="wow">BORF</h1></div>