public
Description: Low-level Template class for MooTools. Maybe some higher-level subclasses.
Home | Edit | New

Home

We need some low-level template-handling stuff and some higher-level template stuff.

Low Level Ideas

Some possible uses. Boiled down as much as possible.
Don’t go into implementation or optimization here

  1. Simple String “templates”
    Use String#substitute asis?
  2. Simple Element “templates”
    Exactly the same as a string template, except you get the string from the corrected-for-IE innerHTML of an element.
    (basically what SubtleTemplates? currently is)
  3. Advanced string “templates”
    like substitute but handles stuff like looping.
  4. Advanced Element “templates”
    The same as Simple Element templates, except uses the advanced string replacement method.
    Some way to define sub-templates or iterable templates.
  5. Data-Binding Object Templates
    Listens to events and repopulates automatically.

UseCases

Goals

Last edited by subtleGradient, Wed May 13 09:13:14 -0700 2009
Home | Edit | New
Versions: