Subject: | [Patch] POD nits |
The attached patch fixes some POD, which renders wrong, at least at
search.cpan.org.
Subject: | pod.patch |
diff --git a/lib/Text/MicroTemplate/Extended.ja.pod b/lib/Text/MicroTemplate/Extended.ja.pod
index d0f95d3..8a97755 100644
--- a/lib/Text/MicroTemplate/Extended.ja.pod
+++ b/lib/Text/MicroTemplate/Extended.ja.pod
@@ -194,7 +194,7 @@ Text::MicroTemplate::Extended ãªãã¸ã§ã¯ãã®åæåæã« C<template_ar
<?= hello() ?> # => 'Hello World!'
-ãã®æ©è½ã¯ C<$key => $coderef> ã®ãããªæ§é ã®ããã·ã¥ãªãã¡ã¬ã³ã¹ã渡ããã¨ãæ³å®ãã¦ãã¾ãããvalueé¨åã«é常ã®ã³ã¼ããªãã¡ã¬ã³ã¹ä»¥å¤ã®å¤æ°ã渡ãã¨ãããèªåçã«ã³ã¼ããªãã¡ã¬ã³ã¹ã§ããã£ã¦ä½¿ç¨ãã¾ãã
+ãã®æ©è½ã¯ C<< $key => $coderef >> ã®ãããªæ§é ã®ããã·ã¥ãªãã¡ã¬ã³ã¹ã渡ããã¨ãæ³å®ãã¦ãã¾ãããvalueé¨åã«é常ã®ã³ã¼ããªãã¡ã¬ã³ã¹ä»¥å¤ã®å¤æ°ã渡ãã¨ãããèªåçã«ã³ã¼ããªãã¡ã¬ã³ã¹ã§ããã£ã¦ä½¿ç¨ãã¾ãã
ä¸è¨ã® C<hello> ãã¯ãã¯ãã®ããã«æ¸ãæãã¦ãåãæå³ã«ãªãã¾ãã
my $mh = Text::MicroTemplate::Extended->new(
@@ -223,7 +223,7 @@ Text::MicroTemplate::Extended ãªãã¸ã§ã¯ãã®åæåæã« C<template_ar
$mf->render_file('template_name');
-ã¨ããã³ã¼ã㧠C<template_name.mt> ãèªã¿è¾¼ãããã«ãããã¨ãã§ãã¾ããã¾ããä¸è¨ã®ããã³ãã¬ã¼ãã®ç¶æ¿ãã§ããã®ãªãã·ã§ã³ã使ç¨ãããC<extension => '.mt'> ã®å ´å㯠C<<? extends 'base' ?>> ã¨ããã³ã¼ã㯠C<base.mt> ããã¼ããã¾ãã
+ã¨ããã³ã¼ã㧠C<template_name.mt> ãèªã¿è¾¼ãããã«ãããã¨ãã§ãã¾ããã¾ããä¸è¨ã®ããã³ãã¬ã¼ãã®ç¶æ¿ãã§ããã®ãªãã·ã§ã³ã使ç¨ãããC<< extension => '.mt' >> ã®å ´å㯠C<<? extends 'base' ?>> ã¨ããã³ã¼ã㯠C<base.mt> ããã¼ããã¾ãã
ãã®ãªãã·ã§ã³ã¯ããã©ã«ãã§ã¯ C<.mt> ã«è¨å®ããã¦ãã¾ãã
diff --git a/lib/Text/MicroTemplate/Extended.pm b/lib/Text/MicroTemplate/Extended.pm
index 8ef2aac..fdf14e0 100644
--- a/lib/Text/MicroTemplate/Extended.pm
+++ b/lib/Text/MicroTemplate/Extended.pm
@@ -353,7 +353,7 @@ C<template_args> also supports CodeRef as its value life below:
...
);
-In template, you can C<<?= $foo ?>> to show C<$foo> value. this value is set by calling C<$self->get_foo> in template process time.
+In template, you can C<<?= $foo ?>> to show C<$foo> value. this value is set by calling C<< $self->get_foo >> in template process time.
This feature is useful to set variable does not exists when template object is created.