Skip to content

olivernn/builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Builder

Some experiments with JavaScript Proxy Object

A simple clone of ruby's builder lib

open test.html in Firefox

b = builder.create()

b.body(function () {
  this.header(function () {
    this.h1("Proxy's are cool")
  })
  this.div(function () {
    this.p("This is a little example of what can be done with the Proxy object")
  }, {class: 'main'})
})

b.toString() // should print out some html.

Can also be used in node if you also install node-proxy via npm. Just require index.js from the node console.

node > builder = require('./index.js')

About

javascript proxy experiment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published