Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

ju1ius/mootools-zencoding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

mootools-zencoding

Wraps zen_parser to generate Elements from zen-coding abbreviations.

How to use

ZenCoding depends on zen_parser.js

var abbr = 'table>(thead>tr>th{Row Header}*4)+(tfoot>tr>td[colspan=4])+(tbody>tr*4>td{Cell...}*4)';

// Parse abbreviation and injects the resulting elements
$('my-element').expandAbbreviation(abbr);
// Or return an Elements object containing the generated elements
var els = ZenCoding.abbrToElements(abbr);

// Parse abbreviation into an HTML string
var html = String.expandAbbreviation(abbr);
// Or
var html = ZenCoding.abbrToHtml(abbr);

About

Facade for the zen-coding parser - MooTools 1.3

Resources

Stars

Watchers

Forks

Packages

No packages published