«ÖáçÒñ 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