Re: [Templates] Comments create newline characters

2008-07-30 Thread Oleg Kostyuk
Use as follows: [%- ## Some type of file header ### -%] See "Chomping Whitespace" in documentation: http://www.template-toolkit.org/docs/manual/Syntax.html#section_Chomping_Whitespace By the way, this applies not only to comments. -- Sincerely yours, Oleg Kostyuk

Re: [Templates] Called UNIVERSAL::can() as a function, not a method

2009-06-02 Thread Oleg Kostyuk
ld list Scalar::Util in PREREQ_PM. > > Regards, >Slaven > > > ___ > templates mailing list > templates@template-toolkit.org > http://mail.template-toolkit.org/mailman/listinfo/templates > -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Access a macro in all templates?

2009-10-12 Thread Oleg Kostyuk
2009/10/12 Octavian Râşniţă : > Thank you very much! Now I just need to find how I can > include this in Catalyst... Take a look at Catalyst::Helper::View::TTSite -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ templates mailing list tem

Re: [Templates] remove space with backspace

2009-10-27 Thread Oleg Kostyuk
/lib/Template/Manual/Config.pod#PRE_CHOMP,_POST_CHOMP -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] remove space with backspace

2009-10-29 Thread Oleg Kostyuk
s", in meaning "nation" and "nations". And I think with original phrase, "Peoples of [%- planet -%] ..." - it sounds reasonable, isn't? ;) -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates

[Templates] Problem with META

2009-12-29 Thread Oleg Kostyuk
7;}, 'Template::Document' ); Q1 for q2 page: $VAR1 = bless( {'_DEFBLOCKS' => {},'_BLOCK' => sub { "DUMMY" },'modtime' => 1262127822,'name' => 'q2.tt2','_HOT' => 0}, 'Template::Document' ); Q2 As y

Re: [Templates] Evaluate the var as a scalar

2010-01-03 Thread Oleg Kostyuk
> > > _______ > templates mailing list > templates@template-toolkit.org > http://mail.template-toolkit.org/mailman/listinfo/templates > -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates

Re: [Templates] Problem with META

2010-01-03 Thread Oleg Kostyuk
was inattentive. 2010/1/2 Andy Wardley : > Oleg Kostyuk wrote: >> >> === root/src/q1.tt2 === >> [% META title = 'Q1' %] >> Q1 >> >> === root/src/q2.tt2 === >> [% PROCESS q2_processed.tt2 %] >> > > [...] > >> for q2 page:

Re: [Templates] HTML Plugin - value-less options (e.g. CHECKED, MULTIPLE)

2010-03-18 Thread Oleg Kostyuk
By XHTML, you should: 1) use lowercased names for tags 2) use "... option='option' ..." syntax So, finaly you should get: -- Sincerely yours, Oleg Kostyuk (CUB-UANIC) ___ te

Re: [Templates] Need help viewing DBIx::Class object in TT

2010-03-18 Thread Oleg Kostyuk
usly has a way of accessing these in a more simplified form. > Is there a way to view the stash as it can be accessed from TT, like > the tree above? > > Thanks in advance! > Chris > > ___ > templates mailing list > templates@t

Re: [Templates] error in while statement

2010-03-24 Thread Oleg Kostyuk
t; [% counter = 0 %] > [% WHILE (counter < info.size) %] > > > Regards, > Savio > > > > > ___ > templates mailing list > templates@template-toolkit.org > http://mail.template-toolkit.org/mailman/listinfo/templates > -- Sin

Re: [Templates] HTML filter, but only for UTF8

2010-08-08 Thread Oleg Kostyuk
->{ _CONFIG }->{name} || 'utf8tohtml'; >    $self->install_filter($name); >    return $self; > } > > sub filter { >    my ( $self, $parameter ) = @_; >    encode_entities( $parameter, '^\n\x20-\x7e' ); >    $parameter; > } &g

Re: [Templates] removing whitespace problem

2011-02-07 Thread Oleg Kostyuk
e(LANGUAGE) %] > >      [% ELSE %] >      , [% author.get_name(LANGUAGE) %] >      [% END %] > >      [% END # of authors loop%] > > > ___ > templates mailing list > templates@template-toolkit.org > http://mail.template

Re: [Templates] DBIx::Class resultsets with 0, 1, 2 items

2011-04-11 Thread Oleg Kostyuk
rk when there > are zero items and when there are two or more items, but fail when there > is just one item. > > Can anybody point me to the best idiom for this please? > > Thanks, Dave > > ___ > templates mailing list > templates@template-toolkit.org >

Re: [Templates] umask of files created in COMPILE_DIR

2011-09-08 Thread Oleg Kostyuk
ase, continue to use different words to say the same thing I am while > calling > me wrong and you right. I'm curious as to how long you'll go. > > Todd W. > > ___ > templates mailing list > templates@template-toolkit.or

Re: [Templates] umask of files created in COMPILE_DIR

2011-09-08 Thread Oleg Kostyuk
2011/9/9 Chad Wallace : > On Fri, 9 Sep 2011 01:31:17 +0300 > Oleg Kostyuk wrote: > >> I think, this will better show what you wanted to say to all: >> >> dev% umask >> 0777 >> dev% touch foo >> dev% perl -MFile::Temp -le '$File::Temp::KEEP_ALL

Re: [Templates] umask of files created in COMPILE_DIR

2011-09-08 Thread Oleg Kostyuk
r, and run scripts from this user. Using separate user to run scripts is also reasonable from security point of view. You can use suexec (for Apache) or FastCGI (everywhere) to accomplish this. HTH 2011/9/9 Todd Wade : > > > - Original Message ---- > > From: Oleg Kostyuk >>

Re: [Templates] umask of files created in COMPILE_DIR

2011-09-08 Thread Oleg Kostyuk
2011/9/9 Todd Wade : > > > From: Oleg Kostyuk >> Well, then I think you satisfied your academic interest? :) With >> addition from Chad, everything is really clear now, I think. > > Everything always was clear. I just wanted to see what everyone else thinks. > &