Wraps zen_parser to generate Elements from zen-coding abbreviations.
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);
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus