#perl - Wed 28 Mar 2007 between 11:56 and 11:59



nahasawhat if I dont have the toolkit?
dazjorzlol
my client higlights 'daze'
nahasaisnt there some kind of print block construct for creating a string?
f00li5hnahasa: cpan Template
jonsmith1982i dont like template::toolkit much it allows you to use code within the template but its too restricting
gnubenahasa, You can get it through cpan
maukeavar: what am I doing wrong? every time I try to learn emacs I discover more annoying crap :(
Ceranhow do you print out the type of an object?
jonsmith1982maybe Apache::ASP is better
f00li5hjonsmith1982: the idea is that teh templates can only do display logic
nahasalike $variable = <<BLOCK;
??
LeoNerdTT2 would be quite nice with a restriction mode, forcing you only to put actual templating in there, and not code
DavemanLeoNerd, one sec trying to deal with something else at the moment
gnubejonsmith1982, You can just pipe variables from perls scripts direct to TT
q[ender]cld2, i think -- terminiates arguments to the perl interpreter and forces it to treat the rest as $program_name [program args]
f00li5hLeoNerd: it defaults to not allowing perl
LeoNerdBut then it practically becomes XSL if you do that
f00li5h: Yeah; but it still has a powerful plugin system anyway.. and you can do real code with that
avarmauke: well it takes a bit of time obviously, learning to look up stuff in the manual is the first step:)
f00li5hwhat's wrong with that LeoNerd?
LeoNerdf00li5h: It allows you to make the Big PHP Mistake
f00li5hhow so?
LeoNerdNamely; of mixing your logic and your presentation
f00li5hyou can only call things in the plugins
avarmauke: also, you have to learn ~100 key combos before you can use it effectively
mauke: what has been annoying you?
cld2q[ender]: thanks.
Randalthe code of tt gets hard about the right place
the knee in the curve reminds me that I'm no longer in V, but in M or C.
LeoNerdTT still makes it too easy to e.g. make random DBI calls
RandalYeah, you have to avoid those
f00li5hLeoNerd: random dbi calls?
that never occurred to me
LeoNerdBut I'll agree it's nicer than some things; like PHP or ASP
maukeavar: 1) the menus look like crap 2) they disappear when you release the mouse button, so just clicking on a menu activates the first entry
f00li5hbecause i've gone to the effort of making templates
RandalDBI->random_connect('pwned_server:...')
q[ender]cld2, i'm not sure though, it's not really explained in perlrun

Page: 5 12 19 26 33 40 47 54 61 68 75 82 89 96 103 110 117 124 

IrcArchive