Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Module::Compile::TT

by nothingmuch (Priest)
on Jun 17, 2006 at 23:27 UTC ( #556036=note: print w/ replies, xml ) Need Help??


in reply to Re: Module::Compile::TT
in thread Module::Compile::TT

Accessors are just a clear example.

Nowadays I use Moose for them, or if I can't then Class::Accessor.

I needed tt for a set of methods that operate on two different classes in almost the same way. It's still just boilerplate code (the object that needed this code gen was a factory object with some convenience routines).

As for macros - C preprocessor style ones, that is - you can use TT macros. See Template::Manual::Directives.

-nuffin
zz zZ Z Z #!perl


Comment on Re^2: Module::Compile::TT

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (10)
As of 2014-04-21 13:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (495 votes), past polls