Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: Re: RFC: Template::YetAnother

by domm (Chaplain)
on Nov 16, 2002 at 16:19 UTC ( #213415=note: print w/replies, xml ) Need Help??

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

Hmm. There is indeed some similarity. But there are two important differences:

  1. only does HTML-tags. My proposed system would handle anything you could write a template for.
  2. The HTML-generating functions of 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)
You correctly recognised that as code, but I think you missed by designing it back into the perl layer. See my reply to Ovids post above.

I am still not sure if i missed with my idea or just didn't describe it properly...

-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://213415]
[LanX]: met a guy from Aberdeen durin holidays, liked Scotsish accent a lot ... very phonetic
[LanX]: ... understood everything after mentally write down what he said.
[choroba]: Trainspotting?
[choroba]: Ouch, trailing commas in JSON :-(
[LanX]: ... though there seems to exist a taxation for the letter 't' in Northern Bri''ain ;-)

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2018-02-19 10:38 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (261 votes). Check out past polls.