Skip to content
This repository has been archived by the owner on Mar 22, 2022. It is now read-only.

radmen/zenjungle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zenjungle.js

Power of microjungle, simpliefied.

static

    var template = [
        ['div.header',
            ['h1',
                ['a[href=#]', 'some pretty title']
            ],
            'some pretty text line 1', ['br'],
            'some pretty text line 2'
        ],
        ['div.content',
            ['p', 'some pretty paragraph'],
            ['p', 'another one'],
            ['ul.pretty-list',
                ['li', 'item1'],
                ['li.active', 'item2'],
                ['li',
                    ['a[href=#]', 'item3']
                ]
            ]
        ],
        ['div.footer',
            ['form[action=/]',
                ['input[type=text][value=some pretty input]'],
                ['input[type=submit][value=push]'],
            ],
            'all rights reserved, copyright 2011.'
        ]
    ];

    document.body.appendChild(zenjungle(template));

credits

About

when ZEN comes to (micro)jungle

Resources

Stars

Watchers

Forks

Packages

No packages published