Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Facade for the zen-coding parser - MooTools 1.3
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Source
README.md
package.yml

README.md

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);
Something went wrong with that request. Please try again.