Template Toolkit : Template Toolkit http://forum.template-toolkit.ru/view_forum/forum_id-6.html?rss Template Toolkit - , . , . , Template Toolkit. ru Lobanov Igor Lobanov Igor <webmaster@template-toolkit.ru> Mon, 26 Dec 2005 16:28:41 GMT Wed, 4 Jan 2006 02:29:01 GMT Perl script, Template Toolkit http://forum.template-toolkit.ru/images/tt2powered.gif Template Toolkit - perl http://forum.template-toolkit.ru/ 88 31 http://blogs.law.harvard.edu/tech/rss http://forum.template-toolkit.ru/view_topic/topic_id-122.html?rss Mon, 19 Dec 2005 14:49:49 GMT Template::Provider::FromDATA - __DATA__ http://forum.template-toolkit.ru/view_topic/topic_id-122.html?rss CPAN 0.04 <a target="_blank" href="http://search.cpan.org/~bricas/Template-Provider-FromDATA/"> Template::Provider::FromDATA</a>, ( __DATA__).<br /><br /> Template::Provider::FromDATA, Template:<br /><br /><div class="code"><pre>use Template; use Template::Provider::FromDATA; # my $provider = Template::Provider::FromDATA-&gt;new( { CLASSES =&gt; __PACKAGE__ } ); # Template my $template = Template-&gt;new( { # ... LOAD_TEMPLATES =&gt; [ $provider ] } ); # ... __DATA__ __DATA__ __mytemplate__ Foo [% bar %] __myothertemplate__ Baz, [% qux %]?</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-122.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-122.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-121.html?rss Mon, 19 Dec 2005 14:10:59 GMT Template::Plugin::HTML::Strip - HTML- http://forum.template-toolkit.ru/view_topic/topic_id-121.html?rss CPAN 0.01 <a target="_blank" href="http://search.cpan.org/~gsimmons/Template-Plugin-HTML-Strip/"> Template::Plugin::HTML::Strip</a>. , HTML-.<br /><br /><div class="code"><pre>[% USE HTML.Strip %] [% FILTER html_strip %] &lt;title&gt;People for the Preservation of Presentational Markup&lt;/title&gt; &lt;h1&gt;HTML::Strip - A cause for concern?&lt;/h1&gt; [% END %] [% USE HTML.Strip 'strip' striptags = [ 'script' 'iframe' ] emit_spaces = 0 %] [% FILTER strip %] &lt;p&gt;A call to arms against the removal of our elements!&lt;/p&gt; [% END %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-121.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-121.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-115.html?rss Sun, 6 Nov 2005 08:46:17 GMT Template::Plugin::Subst - http://forum.template-toolkit.ru/view_topic/topic_id-115.html?rss CPAN <a target="_blank" href="http://search.cpan.org/~nikc/Template-Plugin-Subst/"> Template::Plugin::Subst</a>, .<br /><br /> <span style="font-weight:bold">subst</span><br /><div class="code"><pre>[% USE Subst %] [% str = ' ' %] [% str.subst('(|) (|)', '$2 $1', 1) %]</pre></div><br /><br /> <br /><div class="code"><pre>[% USE filt = Subst pattern = '(|) (|)' replacement = '$2 $1' global = 1 %] [% FILTER $filt %] [% END %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-115.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-115.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-111.html?rss Sat, 1 Oct 2005 06:52:16 GMT Template::Plugin::ASCIITable - http://forum.template-toolkit.ru/view_topic/topic_id-111.html?rss CPAN 0.1 <a target="_blank" href="http://search.cpan.org/~dakkar/Template-Plugin-ASCIITable/"> Template::Plugin::ASCIITable</a>, .<br /><br /><div class="code"><pre>[% USE ASCIITable; ASCIITable.cols('a', 'b', 'c'); ASCIITable.rows([1,2,3],['one','two','three']); ASCIITable.draw() %]</pre></div><br />:<br /><br /><div class="code"><pre> .=----+-----+------=. | a | b | c | |=----+-----+------=| | 1 | 2 | 3 | | one | two | three | '=----+-----+------='</pre></div><br /><br /> , . <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-111.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-111.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-102.html?rss Thu, 21 Jul 2005 05:47:32 GMT Template::Plugin::Perl - Perl http://forum.template-toolkit.ru/view_topic/topic_id-102.html?rss CPAN <a target="_blank" href="http://search.cpan.org/~agent/Template-Plugin-Perl/"> Template::Plugin::Perl</a>, Perl.<br /><br /><div class="code"><pre>[% USE Perl %] [% Perl.log(100) %] [% Perl.rand(1) %] [% Perl.exp(2) %] [% Perl.sprintf(&quot;%.0f&quot;, 3.5) %] [% Perl.pow(2, 3) %] # 2 ** 3; [% Perl.eval('2**3') %] [% Perl.sin(3.14) %] [% Perl.cos(0) %] [% Perl.join(',', 'a', 'b', 'c') %] [% list = ['a','b','c']; Perl.join(',' list) %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-102.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-102.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-101.html?rss Thu, 21 Jul 2005 04:37:32 GMT Template::Plugin::POSIX - POSIX http://forum.template-toolkit.ru/view_topic/topic_id-101.html?rss CPAN <a target="_blank" href="http://search.cpan.org/~agent/Template-Plugin-POSIX/"> Template::Plugin::POSIX</a>. POSIX.<br /><br /><div class="code"><pre>[% USE POSIX %] [% POSIX.log(100) %] [% POSIX.rand(1) %] [% POSIX.exp(2) %] [% POSIX.sprintf(&quot;%.0f&quot;, 3.5) %] [% POSIX.pow(2, 3) %] [% POSIX.ceil(3.8) %] [% POSIX.floor(3.8) %] [% POSIX.sin(3.14) %] [% POSIX.cos(0) %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-101.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-101.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-96.html?rss Mon, 11 Jul 2005 04:05:37 GMT Template::Plugin::Decode - Unicode http://forum.template-toolkit.ru/view_topic/topic_id-96.html?rss CPAN <a target="_blank" href="http://search.cpan.org/~lyokato/Template-Plugin-Decode/"> Template::Plugin::Decode</a>, UTF-8.<br /><br /><div class="code"><pre> [% USE Decode %]. 'decode'. UTF-8 unicode- Perl: [% multibyte_str | decode %]</pre></div><br /> . UTF-8. BOM-. decode. <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-96.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-96.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-94.html?rss Sat, 2 Jul 2005 06:41:54 GMT Template::Plugin::XSLT - XSLT- XML http://forum.template-toolkit.ru/view_topic/topic_id-94.html?rss CPAN 1.2 <a target="_blank" href="http://search.cpan.org/~scott/Template-Plugin-XSLT/"> Template::Plugin::XSLT</a>, , XSLT- XML.<br /><br /><div class="code"><pre>[% USE transform = XSLT(&quot;stylesheet.xsl&quot;); %] ... [% foo.as_xml | $transform foo = '&quot;bar&quot;' baz = 123 %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-94.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-94.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-88.html?rss Tue, 24 May 2005 11:28:04 GMT Template::Plugin::NakedBody - BODY- HTML- http://forum.template-toolkit.ru/view_topic/topic_id-88.html?rss CPAN 0.02 <a target="_blank" href="http://search.cpan.org/~adamk/Template-Plugin-NakedBody/"> Template::Plugin::NakedBody</a>. , HTML- &lt;BODY&gt; &lt;/BODY&gt;. . .<br /><br /><div class="code"><pre># included.html # html- &lt;html&gt; &lt;head&gt; &lt;style ...&gt; &lt;/head&gt; &lt;body&gt; . &lt;/body&gt; &lt;/html&gt; # mypage.html [% USE NakedBody %] &lt;html&gt; &lt;head&gt; &lt;style ...&gt; &lt;/head&gt; &lt;body&gt; . , . [% INCLUDE included.html | NakedBody %] . &lt;/body&gt; &lt;/html&gt;</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-88.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-88.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-87.html?rss Sat, 21 May 2005 08:04:46 GMT CGI::Application::Plugin::AnyTemplate - http://forum.template-toolkit.ru/view_topic/topic_id-87.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/M/MG/MGRAHAM/CGI-Application-Plugin-AnyTemplate-0.04.tar.gz"> 0.04 CGI::Application::Plugin::AnyTemplate</a>. Perl ( <span style="font-weight:bold">HTML::Template</span>, <span style="font-weight:bold">HTML::Template::Expr</span>, <span style="font-weight:bold">Petal</span> <span style="font-weight:bold">Template Toolkit</span>) , CGI::Application. <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-87.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-87.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-84.html?rss Sun, 15 May 2005 14:37:34 GMT Inline::TT - http://forum.template-toolkit.ru/view_topic/topic_id-84.html?rss CPAN 0.04 <a target="_blank" href="http://search.cpan.org/~philcrow/Inline-TT/"> Inline::TT</a>, .<br /><br /><div class="code"><pre> use Inline TT =&gt; 'DATA'; # print hello( { name =&gt; 'Rob' } ), &quot;\n&quot;; print goodbye( { name =&gt; 'Rob' } ), &quot;\n&quot;; __DATA__ __TT__ [% BLOCK hello %] &lt;H1&gt; Hello [% name %], how are you? &lt;/H1&gt; [% END %] [% BLOCK goodbye %] &lt;H1&gt; Goodbye [% name %], have a nice day. &lt;/H1&gt; [% END %]</pre></div><br /><div class="code"><pre>use Inline TT =&gt; &lt;&lt; EO_TEMPLATE [% BLOCK hello %] &lt;H1&gt; Hello [% name %], how are you? &lt;/H1&gt; [% END %] [% BLOCK goodbye %] &lt;H1&gt; Goodbye [% name %], have a nice day. &lt;/H1&gt; [% END %] EO_TEMPLATE print hello( { name =&gt; 'Rob' } ), &quot;\n&quot;; print goodbye( { name =&gt; 'Rob' } ), &quot;\n&quot;;</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-84.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-84.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-81.html?rss Sat, 7 May 2005 12:41:26 GMT Template::Plugin::HTML::Prototype - Ajax- http://forum.template-toolkit.ru/view_topic/topic_id-81.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/B/BA/BAUERB/Template-Plugin-HTML-Prototype-0.01.tar.gz"> 0.01 Template::Plugin::HTML::Prototype</a>. HTML::Prototype, <a target="_blank" href="http://prototype.conio.net/">Javascript- Prototype</a>. Prototype <span style="font-weight:bold">Ruby on Rails</span> - <span style="font-weight:bold">Ajax</span>.<br /><br /><div class="code"><pre> [% USE proto = HTML::Prototype %] [% proto.define_javascript_functions %] [% proto.form_remote_tag(...) %] [% proto.link_to_function(...) %] [% proto.link_to_remote(...) %] [% proto.observe_field(...) %] [% proto.observe_form(...) %] [% proto.periodically_call_remote(...) %] [% proto.submit_to_remote(...) %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-81.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-81.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-75.html?rss Tue, 12 Apr 2005 12:23:30 GMT Template::Multilingual - http://forum.template-toolkit.ru/view_topic/topic_id-75.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/C/CH/CHOLET/Template-Multilingual-0.02.tar.gz"> 0.02 Template::Multilingual</a>. Template .<br /><br />:<br /><div class="code"><pre>use Template::Multilingual; my $template = Template::Multilingual-&gt;new(); $template-&gt;language('en'); $template-&gt;process('example.ttml');</pre></div><br />:<br /><div class="code"><pre> &lt;t&gt; &lt;en&gt;Hello!&lt;/en&gt; &lt;fr&gt;Bonjour!&lt;/fr&gt; &lt;ru&gt;!&lt;/ru&gt; &lt;/t&gt;</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-75.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-75.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-74.html?rss Mon, 4 Apr 2005 06:03:55 GMT Template::Plugin::TagRescue - html http://forum.template-toolkit.ru/view_topic/topic_id-74.html?rss <a target="_blank" href="http://backpan.cpan.org/authors/id/T/TA/TANIMOTO/Template-Plugin-TagRescue-0.06.tar.gz"> 0.06 Template::Plugin::TagRescue</a>. (.. &lt; &gt; &amp; &quot; entities) html .<br /><br /><div class="code"><pre>[% USE TagRescue %] [% FILTER html_except_for('b') -%] &lt;B&gt;!&lt;/B&gt; and &lt;I&gt;!&lt;/I&gt;&lt;BR&gt; [%- END %] # : # &lt;B&gt;!&lt;/B&gt; and &amp;lt;I&amp;gt;Italic!&amp;lt;/I&amp;gt;&amp;lt;BR&amp;gt; [% '&lt;B&gt;!&lt;/B&gt; and &lt;I&gt;!&lt;/I&gt;&lt;BR&gt;' | html_except_for('i','br') %] # : # &amp;lt;B&amp;gt;Bold!&amp;lt;/B&amp;gt; and &lt;I&gt;Italic!&lt;/I&gt;&lt;BR&gt; [% taglist = ['b', 'br']; '&lt;B&gt;!&lt;/B&gt; &lt;I&gt;!&lt;/I&gt;&lt;BR&gt;' | html_except_for(taglist) %] # : # &lt;B&gt;!&lt;/B&gt; &amp;lt;I&amp;gt;!&amp;lt;/I&amp;gt;&lt;BR&gt;</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-74.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-74.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-72.html?rss Tue, 29 Mar 2005 12:46:04 GMT Template::Plugin::HTML::BBCode - BBCode HTML http://forum.template-toolkit.ru/view_topic/topic_id-72.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/L/LI/LIOL/Template-Plugin-HTML-BBCode-0.01.tar.gz"> 0.01 Template::Plugin::HTML::BBCode</a>. HTML::BBCode bbcode, BBCode HTML.<br /><br /><div class="code"><pre>[%- USE HTML::BBCode -%] [% FILTER bbcode %] &#91;b]BBCode&#91;/b] - is simple &#91;i]markup language&#91;/i] used in &#91;url=http://www.phpbb.com/]phpBB&#91;/url]. [% END %] [%- USE HTML::BBCode( 'bbcode_limited' allowed_tags = [ 'b', 'i', 'u' ] ) -%] [% FILTER bbcode_limited %] &#91;b]BBCode&#91;/b] - is simple &#91;i]markup language&#91;/i] used in &#91;url=http://www.phpbb.com/]phpBB&#91;/url]. [% END %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-72.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-72.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-71.html?rss Sun, 27 Mar 2005 11:07:13 GMT Template::Plugin::DBM::Deep - pure perl DBM http://forum.template-toolkit.ru/view_topic/topic_id-71.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/M/ME/MERLYN/Template-Plugin-DBM-Deep-0.02.tar.gz"> 0.02 Template::Plugin::DBM::Deep</a>. DBM::Deep.<br /><br /><div class="code"><pre> [% USE db = DBM.Deep(file = &quot;my.db&quot; locking = 1 autoflush = 1); db.lock; db.flintstones = { &quot;flintstone&quot; = [&quot;fred&quot; &quot;wilma&quot;] &quot;rubble&quot; = [&quot;barney&quot; &quot;betty&quot;] }; db.castaways = [&quot;gilligan&quot; &quot;skipper&quot; &quot;professor&quot; &quot;and the rest&quot; ]; db.unlock; -%] ... [% db.flintstones.rubble.0; %] -- barney [% db.castaways.3; %] -- and the rest </pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-71.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-71.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-68.html?rss Mon, 14 Mar 2005 12:35:02 GMT ExtUtils::ModuleMaker::TT - TT- http://forum.template-toolkit.ru/view_topic/topic_id-68.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/D/DA/DAGOLDEN/ExtUtils-ModuleMaker-TT-0.74.tar.gz"> 0.74 ExtUtils::ModuleMaker::TT</a>. , (README, Changes, Todo, Build.PL, Makefile.PL, Proxy_Makefile.PL, MANIFEST.SKIP, test.t, module.pm), TT. <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-68.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-68.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-67.html?rss Mon, 14 Mar 2005 12:21:55 GMT Template::Plugin::String::Compare - http://forum.template-toolkit.ru/view_topic/topic_id-67.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/T/TA/TANIMOTO/Template-Plugin-String-Compare-0.01.tar.gz"> 0.01 Template::Plugin::String::Compare</a>, .<br /><br /><div class="code"><pre> [% IF '2005-03-01' &lt; '2005-04-01' %] . [% END %] [% USE String.Compare %] [% IF String.Compare.new('2005-03-01') &lt; '2005-04-01' %] . [% END %] </pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-67.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-67.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-63.html?rss Sat, 19 Feb 2005 08:23:15 GMT eCommerece Handel http://forum.template-toolkit.ru/view_topic/topic_id-63.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/C/CL/CLACO/Handel-0.04.tar.gz"> Handel ( 0.04)</a>. eCommerece AxKit Template Toolkit. <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-63.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-63.html?rss http://forum.template-toolkit.ru/view_topic/topic_id-62.html?rss Thu, 17 Feb 2005 07:27:20 GMT Template::Plugin::SSI - SSI http://forum.template-toolkit.ru/view_topic/topic_id-62.html?rss CPAN <a target="_blank" href="http://backpan.cpan.org/authors/id/C/CO/COREY/Template-Plugin-SSI-0.11.tar.gz"> 0.11 Template::Plugin::SSI</a>. CGI::SSI SSI-.<br /><br /><div class="code"><pre>[% USE SSI %] # (virtual) /foo/bar.inc.html [% SSI.include('virtual', '/foo/bar.inc.html') %] # /foo/bar.inc.html [% SSI.include('file', '/var/www/html/foo/bar.inc.html') %] # [% SSI.exec('cmd', 'ls') %] # cgi [% SSI.exec('cgi', '/cgi-bin/foo.cgi') %] # ('sizefmt', 'timefmt', 'errmsg') [% SSI.config('timefmt', &quot;%Y&quot;) %] # [% SSI.echo('DATE_LOCAL') %] # ($name = 'Corey') [% SSI.set('name', 'Corey') %] # 'index.html' [% SSI.flastmod('file', 'index.html') %] # 'index.html' [% SSI.fsize('file', 'index.html') %]</pre></div> <authors@template-toolkit.ru> http://forum.template-toolkit.ru/view_topic/topic_id-62.html Template Toolkit - Perl http://forum.template-toolkit.ru/view_topic/topic_id-62.html?rss