Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: RFC - Template::Empty

by stiller (Friar)
on Feb 25, 2008 at 08:32 UTC ( [id://669960]=note: print w/replies, xml ) Need Help??


in reply to RFC - Template::Empty

It seems nice enough, but I think it's not needed. For a template as simple as your example, most if not all the existing is fine. For more complex examples (only include this section if...) then either one will have to switch from your to a more complex one, with a need to rewrite code and template.

And this approach looses something I really like about Template: solid visual clues to the web-designers about what they must not change. E.g.:

Username: <input type='text' name='username' value='' />
vs:
Username: <input type='text' name='username' value='[% default.use +rname %]' />
And then all the other things you will have to implement to get a fairly complete template system. I toiled with making my own, but found I still had loads to learn about the existing templating systems.
But that's just my $0.02
Edit: typo in placing the default username in the name attribute.
Update 12 hours later: I might be in for some serious reconsiderations.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://669960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-26 04:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found