mootools-zencoding 1.0.1
Wraps zen_parser to generate Elements from zen-coding abbreviations.
Details
- Author
- ju1ius
- Current version
- 1.0.1
- GitHub
- ju1ius/mootools-zencoding
- Downloads
- 2455
- Category
- Native
- Tags
- Report
- GitHub Issues
Releases
Dependencies
- _self_/_current_: core/1.3:Element
- http://github.com/sergeche/zen-coding/blob/master/javascript/zen_parser.js/http:
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);
Discuss
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