News RSS

New DOM::Template Site

Posted on 2011-07-10 14:03:05 by Mick

It' 2011 and we are back with a new site. The DOM:Template Libs have been updated with some extra features.

Some of the new Features include:

  • Updated insertHtml() calls to insert html into a node an not replace the node
  • Added replaceHtml() calls to replace a DOM node contents
  • Adde appendHtml() calls to append html to a var node
  • Added insertTemplate(), replaceTemplate() and appentTemplate() calls
  • Moved all DOM classes to one Template.php file
  • Added translation of HTML entities so   and more will work seemlessly
  • Added static loadXML() and load() calls to create a new template from a string or file
  • Template headers are now copied when using insertTemplate() and replaceTemplate()
  • Added addClass() and removeClass() calls to make it easy to manage css class names in nodes
  • Added appendCssUrl() and appendCss() to allow easy addition of CSS files and strings
  • Added appendJsUrl() and appendJs() to allow easy addition of JavaScript files and strings
  • Added new static insertHtmlDom(), replaceHtmlDom() and appendHtmlDom() as usilities to add HTML to any DOMElement object
  • Added insertDoc(), replaceDoc() and appendDoc() calls to insert a DOMDocument into a node
  • toString() now parses the template and returns the resulting html/xml

Keep checking back from time to time or signup to the RSS feed to find out about our new tutorials as they come online.