Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Text::MicroTemplate::EUserdContributed PerlText::MicroTemplate::Extended.ja(3)

NAME
       Text::MicroTemplate::Extended::ja - Japanese document

SYNOPSIS
	   use Text::MicroTemplate::Extended;

	   my $mt = Text::MicroTemplate::Extended->new(
	       include_path  =>	['/path/to/document_root'],
	       template_args =>	{ c => $c, stash => $c->stash, },
	   );

	   $mt->render('content'); # render file: /path/to/document_root/content.mt

DESCRIPTION			      _
       Text::MicroTemplate::Extended a	Text::MicroTemplate::File
       a<<aaa1/4a^1a<<aaaxaa(R)ae_C)e1/2ae?1/2a	aaae!a1/4<micro>aca,aYa1/4a<<a<section>aa
       aoae~caaae(C)e1/2a<<axaa|a  Text::MicroTemplate::File a(R)aa-
       aYa!a^3aaac<section>aa aaa

ae!o
   ~a~a^3~a~a~~a1/4~a~a(R),c<paragraph>ae?     _
       aa^3aa~a1/4aa(R)c<paragraph>ae?a	 Django
       aa^3aa~a1/4aaaa(C)a<section>ae!c"aaa|aaaa^3aa~a1/4aaa(C)c"a(R)a>>c<micro>a?a<section>aa
       Text::Micro_emplate::Extended								    _
       a<section>a aa(R)aa^3aa~a1/4ac<paragraph>ae?a(R)a>>c<micro>a?aa>>a1/4aa(R)a3/4a3/4a1/2?aaa"aa e1/2a<section>aa
				   _
       aa^3aa~a1/4ac<paragraph>ae?a_aa^3aa~a1/_aa(R)a^2aaa1/2ca"aaae|aaa^3aa~a1/4aa(R)a,-
       a<section>aaaxaaa(R)c3/4(C)a e1/2aaaaaa aa(R)c3/4(C)aa|aaa"aaaaa-
       aa^3aa~a1/4aa<section>eac+-a<<aa(R)c3/4(C)aaaa"aa<section>aaa"aaae(C)e1/2a<section>aa
							 _
       aa^3aa~a1/4aa(R)c<paragraph>ae?ace<section>Laaa<<a aa3/4aa3/4aaeaaa(R)aa,caa<section>aaa:

	   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0	Transitional//EN"
	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	   <head>
	       <link rel="stylesheet" href="style.css" />
	       <title><? block title =>	sub { ?>My amazing site<? } ?></title>
	   </head>

	   <body>
	       <div id="sidebar">
		   <? block sidebar => sub { ?>
		   <ul>
		       <li><a href="/">Home</a></li>
		       <li><a href="/blog/">Blog</a></li>
		   </ul>
		   <? }	?>
	       </div>

	       <div id="content">
		   <? block content => sub {} ?>
	       </div>
	   </body>
	   </html>
			 _
       aa(R)aa^3aa~a1/4aa aac'aa 2
       a<<a(C)a	a1/2ca1/4a(R)aa1/4a,a<section>a1/2?aaaaa HTML
       a(R)a^1a+-a<<aa^3aaaYa!a^3aa<s_ction>aaaaa base.mt	    _
       a"a1/4a^3a3/4aaaac(C)oa(R)aaaa aa^3a^3aa^3aa<section>aaaa(R)a aa
       (child)aa(R)aa^3aa~a1/4aa(R)a>>aoa<section>aa

       aa_R)a3/4a<section>a a "<? block	?"> a?a<degree>aa1/2?aLa| 3 axa(R)aa-
       aa aa(R)c3/4(C)aaaaa^3aa~aaaaxaaaaaaaaa<<aa|aa3/4aa block
       a?a<degree>a(R)a1/2^1a^2a aaa^3aa~a1/4aa,-
       a(R)a?a<degree>a<section>a^2a3/4aae"aaa-
       aa^3aa~a1/4aa<section>aaa1/4aa(C)axaa<section>aaaa"aaa^3aa~a1/4aa"a^3a,a^3a<<cYaaaaa"a<<aaa3/4aa
		     _
       aaa^3aa~a1/4aa a>>Ya,a(R)aaa<<aaaa3/4a:

	   ? extends 'base'

	   <? block title => sub { ?>My	amazing	blog<? } ?>

	   ? block content => sub {
	   ? for my $entry (@$blog_entries) {
	       <h2><?= $entry->title ?></h2>
	       <p><?= $entry->body ?></p>
	   ? } # endfor
	   ? } # endblock
						   _
       "<? extends 'base' ?"> a?a<degree>i1/4a3/4aa  "?	extends		  _			     _
       'base'"i1/4ac<paragraph>ae?a(R)a<<a(R)a<section>aaaa(R)a?a<degree>a aa^3aa~a1/4aa"a^3a,a^3a<<a 3/4aa|aeaaeaeo<<aa>>a(R)aa^3aa~a1/4aaae!a1/4<micro>
       (extend)									_
       aa|aaaa"aaeaa3/4aaaa^3aa~a1/4aa.a^1aa aaa(R)aa^3aa~a1/4aaa|caaeaa.a^1aa a a3/4ae|aa"aaaaa^3aa~a1/4a
       -- aaa<section>a	 "base.mt" aaecaa3/4aa
						       _
       aa|aaa(R)aec^1a<section>aaa^3aa~a1/4aa"a^3a,a^3a	 base.mt
       aa<<a,c(R)aea(R)	"<? block ?">			_
       aa(R)c3/4(C)aaa|aaaa"a<<ae<degre_>aYaaaaaa(R)aaaa aa-
       aa^3aa~a1/4aa(R)e(C)^2a1/2aaaaaa_a<section>c1/2(R)aaeaa3/4aa
       blog_entries a(R)axa<<a?aa|aaoaa	a>>Ya,a(R)aaa<<aaaa3/4a:

	   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0	Transitional//EN"
	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	   <head>
	       <link rel="stylesheet" href="style.css" />
	       <title>My amazing blog</title>
	   </head>

	   <body>
	       <div id="sidebar">
		   <ul>
		       <li><a href="/">Home</a></li>
		       <li><a href="/blog/">Blog</a></li>
		   </ul>
	       </div>

	       <div id="content">
		   <h2>Entry one</h2>
		   <p>This is my first entry.</p>

		   <h2>Entry two</h2>
		   <p>This is my second	entry.</p>
	       </div>
	   </body>
	   </html>
			_
       aaaaa~a1/4aa<<a  sidebar aa-
       aa aa(R)c3/4(C)aaa|aaaaa(R)a<section>ae|aaa^3aa~a1/4aa(R)axaaa(R)a3/4a3/4a1/2?aaa3/4aae|aaa^3aa~a1/4aa(R)
       "<? block ?">	      _			     _
       a?a<degree>a(R)aa(R)^1a aa,,a<<aa(C)a1/4a<<aaa a(R)axa"aa|a1/2?aaa3/4aa
				       _
       aa^3aa~a1/4aa(R)c<paragraph>ae?a	a?e|a<<a?aa|a1/2ae(R)<micro>ea<<aa<section>aa3/4aac<paragraph>ae?aa1/2?aaaaaa 'aa(R)a,axa<<aa>>Ya,a(R)aaaaa,ae(R)<micro>ea(R)acaa-
       a1/4aaaaa3/4a:
				     _
       1.  a<micro>axaa(R)a,>>aaa<<aa i1/4aaLa1/4a<<aae+-oaa base.mt
	   aa^3aa~a1/4aaa1/2aeaa3/4aa
				_
       2.  a<micro>axaa(R)aaa>>a a.a<section>a^3aaa"a<<	base_SECTIONNAME.mt
	   aa^3aa~a1/4aaa1/2aeaa3/4aaaa"aa<degree>a base_news.mt,	     _
	   base_sports.mt a"aaLaa.aa<section>aaaaaa(R)aa^3aa~a1/4aa<section>a
	   base.mt		  _
	   aae!a1/4<micro>aa|aa>>a a.a<section>a^3aoaea(R)a^1a?axa<<aaa<paragraph>axa^3aaae3/41/4aa<section>aaa3/4aa

       3.  aaYa1/4a^1e"aoaaa-											   _	       _
	   a<degree>a"a^3aaaa"aaLaac"(R)aa1/4a,c"a(R)aaa(R)aa^3aa~a1/4aaa1/2aeaa3/4aaaaaa(R)aa^3aa~a1/4aa<section>a e(C)aaaa>>a	a.a<section>a^3aa^3aa~a1/4aaae!a1/4<micro>aa3/4aa

       aa(R)aaaaacaa-								   _		     _
       a1/4aaaaa<degree>aa^3a1/4aa(R)aea(C)c"ae<section>aaeax<section>ea<<e<<aaa>>a a.a<section>a^3ae a(R)aaa^2a1/4a.a<section>a^3a(R)aaaae c(R)ac<degree>!aa<<a+-ea(R)a^3a^3aa^3ae aa<<e?1/2a a<section>aa3/4aa

       c<paragraph>ae?aae+-aa"aa(R)a<degree>aeaaaaxaaeaa|aaa3/4a:

       o   aa^3aa~a1/4aa<sec_ion> "<? extends ?"> aa1/2?aa 'aa1aa^3aa~a1/4aa,-					  _
	   a<<aa(R)a1/2a>>xa a,ao|aaa1/2?c"a<section>aaaaaa"a<<ae^3"aeaa|aa aaaexae<degree>aa(R)a1/2a>>xaaaLaa 'aa aa3/4aa(R)aa(R)aaaaaaa3/4aa

       o   aa1/4a^1a(R)aa^3aa~a1/4aa<section> "<? block	?">
	   aaxc"aaa<degr_e>aaa>>a(C)aaaaaaa^3aa~a1/4aa<<aaaa3/4aaa-
	   aa_3aa~a1/4aa e|aaa^3aa~a1/4aa(R)aa-
	   aa_aa?aaaa"a|a(R)c3/4(C)aaaaa|aaaaa"aaeaaoaa|a,aaaaa-
	   aa aaaaac"aeaa|aaae(C)aaaaaa(C)a<<aaxaaYaa|aaa|aa-				 _ _
	   aa^3aa~a1/4aa<section>a?e|aaaxa aaaa(R)c3/4(C)aaa<degree>aaa(R)a<section>aaaaa a a<degree>aaaaaaae^2ca+-+-aaae^1aaaa(R)a<section>aa
										  _
       o   aaaaaaaa(R)^1aa<<aaa^3aa~a1/4aaaaaxaa1/2aLa|aaaa"a<<ae<degree>aYaaaaaaa aaaaa!aa(R)aa(R)^1ae|aaa^3aa~a1/4aa(R)
	   "<? block ?"> a<<aYaaa^1aa a"aaaa"a<section>aa
				  _
       o   e|aaa^3aa~a1/4aa(R)aaaa a<<aYaLa|aaa^3a^3aa^3aaaaaoaa?e|aaaa	'aa
	   "<_=	super()	?>" a"aaa"aa3/4aaaa3/4aae|aaa^3aa~a1/4aa(R)aa-
	   aa aaaa1/4aa(C)axaaaa(R)a<section>a aaaaaa(R)^1ae?1/2a aaaa 'aa<<a3/4?a(C)a<section>aa
	   "<?=	super()	?>"	     _
	   a<section>ae?aYaaaaa1/4a?a aea,,ae|aaa^3aa~a1/4aa<section>aeca<<a"a^1a+-a1/4aaaa|aaa(R)a<section>aeaaca<<a"a^1a+-a1/4aaaa3/4aa
	    _
       o   a eaae<section>ae<<aaaaa<<aa3/4aa<degree>a>>Ya,a(R)aaa<<a "<? } #
	   endblock ?">	a<<aaaa	a(R) aa	aaea(R)a<section>aa3/4a:

	       <? block	content	=> sub { ?>
	       ...
	       <? } # endblock content ?>

	    ax<section>aaaaa^3aa~a1/4aa(R)c."ea<section>aa(C)aa<section> C<<? block ?>>	a?a<degree>aeaa|aaaaecaa(R)a<<a3/4?a(C)a<section>aa

       aea3/4a<<aaaaa^3aa~a1/4aa,a<<aaaaa(R) "<? block ?">			     _
       aexa(R)c3/4(C)a<section>aaaaaa"a<<ae^3"aeaa|a,aaaaa(R)a<paragraph>ea aaa-
       aa_a?a<degree>aaaae^1aaa<<a1/2c"aaaaaaaaaa!aaaaa-
       aa a?a<degree>a a1/2aaa(R)axaaaaaaa(R)c(C)'a<section>aaa	aa<section>aaaac(C)'aaaa
       e|aaa^3aa~a1/4aa(R) a^3a^3aa^3aaa(R)c3/4(C)aa|aaaaa<<a-
       a"aa|aa3/4aaaaaaa(R) "<?	block ?">					      _
       aa_axa(R)aa^3aa~a1/4aaa<<exae<degree>aaa"aaa(R)aa^3aa~a1/4aa(R)e|aaa^3aa~a1/4aa ae(C)^2a1/2aaaa-
       aa a(R)aa(R)^1aaaa^3aa~a1/4aa(R)a(C)a(R)	"<? block ?"> e"-
       a(R)a<section>c1/2(R)aaeaaa<degree>aaa(R)aaaaaaaaaaLa|aa3/4aa3/4aa

   oaoa"a>>~aoa1/4ae<degree>				     _
       Text::MicroTemplate::Extended aaaa,a<section>a aa(R)aaeaaea<<
       "template_args"																			     _
       a1/4ae<degree>a<section>aa^3aa~a1/4aa<<ae,!aaaaxae<degree>aaaa.aYaaaa!a~a^3a^1a"aa|c>>e^2aa|aaa"aaa^3aa~a1/4aa+-eaea<<aa(R)a1/4ae<degree>a<<aaa>>aaxae<degree>a"aa|aca a>>a^1aaaa"aa<section>aa3/4aa

	   my $mf = Text::MicroTemplate::Extended->new(
	       template_args =>	{ foo => 'bar',	},
	       ...
	   );

       a"aa|aaa"

	   <?= $foo ?>

       a<section> "bar"	a"aaaoaaa3/4aaa3/4aa

       a3/4aaa>>Ya,a(R)aaa<<a^3a1/4aaaaa!a~a^3a^1aae,!aa"aa^3aa~a1/4aa(R)e!aea<<a(R)e!aaaaa(R)aa1/4ae<degree>a"aa|a+-eaaa3/4aa

	   my $mf = Text::MicroTemplate::Extended->new(
	       template_args =>	{ foo => sub { $self->get_foo()	} },
	       ...
	   );

       a,e"a(R)aaa<<a1/4ae<degree>ae"a(R)aaa" "<?= $foo	?"> a<section>
       "$self->get_foo_	a(R)c<micro>aeae!"cxoaaaa"aaaa_/4aa
       aa(R)ae(C)e1/2a aa^3aa~a1/4aaaaa,a<section>a aaaeaaea<<a	a1/4ae<degree>a<<a,aaaaa(R)aa-
       a"aaaaa 'aaaa(C)aa1/4ae<degree>aaa"aaae,!aa 'aa<<aea^1a<section>aa
     _
   ~a~a ~aae(C)`e1/2
       aa a-	 _					       _
       ae(C)e1/2a aaa>>aa1/4ae<degree>a<<a1/41/4a|aa3/4aaaaa!aa	a1/4ae<degree>aaxaaaaaa<<ecae<degree>aaa^3aa~a1/4aa<<ae,!aa3/4aa

	   my $mh = Text::MicroTemplate::Extended->new(
	       macro =>	{
		   hello => sub	{ return 'Hello	World!'	},
	       },
	       ...
	   );
		     _
       aa(R)a^3a1/4aa aa^3aa~a1/4aaa<section> hello
       a"e"aecae<degree>aa1/2?c"a<section>aaaaa<<aa3/4aa

	   <?= hello() ?>  # =>	'Hello World!'
		      _
       aa(R)ae(C)e1/2a	"$key => $coderef"
       a(R)aaaaae<section>ea_R)aaa.aYaaaa!a~a^3a^1aae,!aaa"aae^3a(R)aa|aa3/4aaavaluee"aa<<ea,,a(R)a^3a1/4aaaaa!a~a^3a^1a>>Yaxa(R)axae<degree>aae,!aa"aaaeaaca<<a^3a1/4aaaaa!a~a^3a^1a<section>aaaLa|a1/2?c"aa3/4aa
       a,e"a(R)	"hello"	aa aa aa(R)aaa<<ae,aaeaa|aaaaea^3a<<aaaa3/4aa

	   my $mh = Text::MicroTemplate::Extended->new(
	       macro =>	{
		   hello => 'Hello World!',
	       },
	       ...
	   );

   ae!oa1/4<micro>oa~a(R),c,c=Y
       aaaaa,aa<<a_R) Text::MicroTemplate::File
       a<section>a aa^3aa~a1/4aaa!axa<<aa~a^3aaaa^3a<degree>aaea<<

	   $mf->render_file('template_name.mt');

       a"aa!axa<<aaaa<<aa1/4a a<section>aea(R)aaa?e|aaaa3/4aaa
		    _
       aaaaa(R)c"a,a  ".mt" aaa(C)a(R)aaa<<aa^3aa~a1/4ac"a(R)ae!a1/4<micro>a-
       aaxaa|a1/2?caaa	'aaa>>a"aa(C)a<section>aaaa(R)aaaText::MicroTemplate::Extended
       a<section>a  "extension"	a"aaaaaa.a<section>a^3ac"aeaa|aa|a

	   my $mf = Text::MicroTemplate::Extended->new(
	       extension => '.mt',
	       ...
	   );

       aaa(C)a(R)aaa<<aaeaaaa"

	   $mf->render_file('template_name');

       a"aaa^3a1/4aa<section> "template_name.mt" aea-
       a?e3/41/4aaaa<<aaaa_aa<section>aa3/4aaa3/4aaa,e"a(R)aaa^3aa~a1/4aa(R)c<paragraph>ae?aa<section>aaa(R)aaaa.a<section>a^3aa1/2?c"aaa"extension
       => '.mt'" a(R)a 'aa  "<?	extends	'base' ?"> a"aaa^3a1/4aa  "base.mt"
       aaa1/4aaa3/4aa

       aa(R)aaaa.a<section>a^3a	aaa(C)a<<aa<section>a  ".mt" a<<e"-
       a(R)aaa|aa3/4aa

   render~a!~a1/2~a~a~a(R),c1/2(R)~aae~a	    _
       Text::MicroTemplate::File a<section>a  "render_file"
       a!a1/2aaa<section>aa^3aa~a1/4aaa!axa<<aa~a^3aaaa^3a<degree>a"render"						     _
       a!a1/2aaa<s_ction>a^1a<<a(C)a1/4axae<degree>aaa(C)a<<a(R)c3/4(C)aaaaa^3aa~a1/4aaa~a^3aaaa^3a<degree>a"aaaaaaa1/2?aaaaa e1/2a aLaa(R)a<section>aaaText::MicroTemplate::Extended
       a<section>a aaa^3aa~a1/4aa(R)c<paragraph>ae?aa<micro>aa1/4aaaa"aac(R)ca(R)aaaa^3aa~a1/4aaa!axa<<a(R)a~a^3aaaa^3a<degree>a(R)a?a<<ae(C)e1/2ac<micro>aa3/4aaa
							_		    _
       aa(R)aaaText::MicroTemplate::Extended a<section>a  "render" a!a1/2aaa
       "render_file"
       a!a1/2aaa,a(R)a.a<section>a1/4aa<<aaa"aa|aa1/2aaaaa<<aaaLa|aa3/4aa

	   $mf->render('template_name');
	   $mf->render_file('template_name');
	_
       a aca(R)a|cae!aa3/4aa

METHODS
   new (%options)
	   my $mf = Text::MicroTemplate::Extended->new(
	       extension     =>	'.mt',
	       template_args =>	{ c => $c, stash => $c->stash },
	   );
						     _
       Text::MicroTemplate::Extended aaaa,a<section>a aaaaeaaa3/4aa
	       _			 _
       a1/2?c"a	e1/2aaaaaa.a<section>a^3a a>>Ya,a(R)eaa<section>ai1/4

       extension
	   aa^3aa~a1/4aaa!axa<<a(R)ae_a1/4<micro>aae"-
	   a(R)aa3/4aai1/4aaa(C)a<<aa  .mt a<section>a)

       template_args
	   aa^3aa~a1/4aa<<ae,!aa1/4ae<degree>aaaa.aYaaaa!a~a^3a^1a<section>aea(R)aa3/4aa

       macro
	   aa^3aa~a1/4aaa<section>a1/2?c"aamacroaaaa.aYaaaa!a~a^3a^1a<section>aea(R)aa3/4aa
				      _
       aaa>>Yaxa(R)aaaa.a<section>a^3a	Text::MicroTemplate::File
       aac<section>aa|aa aaa

   render ($template_name, @args)
   render_file ($template_name,	@args)
       $template_name
       a<section>ae,!aaa|aa^3aa~a1/4aaa~a^3aaaa^3a<degree>aac<micro>aeae?aa3/4aa

INTERNAL METHODS
   build
   eval_builder
   template_args
   extension
   render_context
AUTHOR
       Daisuke Murase <typester@cpan.org>

COPYRIGHT AND LICENSE
       Copyright (c) 2009 by KAYAC Inc.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

       The full	text of	the license can	be found in the	LICENSE	file included
       with this module.

perl v5.32.1			  2012-06-2Text::MicroTemplate::Extended.ja(3)

NAME | SYNOPSIS | ae!o | METHODS | INTERNAL METHODS | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Text::MicroTemplate::Extended.ja&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help