in reply to
Re: RFC: Template::YetAnother
in thread RFC: Template::YetAnother
Looking at your coded $data, that doesn't seem much different in concept from the html generation available from CGI.pm.
Hmm. There is indeed some similarity. But there are two important differences:
You correctly recognised that as code, but I think you missed by designing it back into the perl layer.
- CGI.pm only does HTML-tags. My proposed system would handle anything you could write a template for.
- The HTML-generating functions of CGI.pm return the finished HTML-string. My proposed system would return an object that would stringify only whern requested to do so (e.g. by calling $th->fill)
See my reply to Ovid
s post above.
I am still not sure if i missed with my idea or just didn't describe it properly...