Permalink
Browse files

Merge pull request #16 from patch/master

improve docs, from Patch
  • Loading branch information...
2 parents 4bfe557 + c1cde83 commit f81af388bcde26ae1e6f35833e19f6884216657a @nebulous nebulous committed Feb 12, 2013
View
@@ -42,7 +42,7 @@ $module_path. Returns 1 if successful, undef if error.
- Jemplate->compile_module_cached($module_path, \@template_file_paths);
Similar to `compile_module`, but only compiles if one of the templates
-is newer than the module. Returns 1 if sucessful compile, 0 if no
+is newer than the module. Returns 1 if successful compile, 0 if no
compile due to cache, undef if error.
View
@@ -75,7 +75,7 @@ PUBLIC API
The "template-name" is a string like 'body.html' that is the name of
the top level template that you wish to process.
- The optional "data" specififies the data object to be used by the
+ The optional "data" specifies the data object to be used by the
templates. It can be an object, a function or a url. If it is an
object, it is used directly. If it is a function, the function is
called and the returned object is used. If it is a url, an
@@ -110,7 +110,7 @@ PUBLIC API
Jemplate->compile_module_cached($module_path, \@template_file_paths);
Similar to `compile_module`, but only compiles if one of the
- templates is newer than the module. Returns 1 if sucessful compile,
+ templates is newer than the module. Returns 1 if successful compile,
0 if no compile due to cache, undef if error.
AJAX AND JSON METHODS
View
@@ -9,6 +9,10 @@ use Jemplate 0.22;
Jemplate->main(@ARGV);
+__END__
+
+=encoding UTF-8
+
=head1 Usage:
jemplate --runtime [runtime-opt]
@@ -107,7 +107,7 @@
the top level template that you wish to process.</p>
</dd>
<dd>
-<p>The optional <code>data</code> specififies the data object to be used by the
+<p>The optional <code>data</code> specifies the data object to be used by the
templates. It can be an object, a function or a url. If it is an object,
it is used directly. If it is a function, the function is called and the
returned object is used. If it is a url, an asynchronous &lt;Ajax.get&gt; is
@@ -157,7 +157,7 @@
<dd>
<p>Similar to `compile_module`, but only compiles if one of the templates
-is newer than the module. Returns 1 if sucessful compile, 0 if no
+is newer than the module. Returns 1 if successful compile, 0 if no
compile due to cache, undef if error.</p>
</dd>
</li>
@@ -71,7 +71,7 @@ PUBLIC API
The "template-name" is a string like 'body.html' that is the name of
the top level template that you wish to process.
- The optional "data" specififies the data object to be used by the
+ The optional "data" specifies the data object to be used by the
templates. It can be an object, a function or a url. If it is an
object, it is used directly. If it is a function, the function is
called and the returned object is used. If it is a url, an
@@ -106,7 +106,7 @@ PUBLIC API
Jemplate->compile_module_cached($module_path, \@template_file_paths);
Similar to `compile_module`, but only compiles if one of the
- templates is newer than the module. Returns 1 if sucessful compile,
+ templates is newer than the module. Returns 1 if successful compile,
0 if no compile due to cache, undef if error.
AJAX AND JSON METHODS
@@ -204,14 +204,14 @@ CREDIT
them ;)
AUTHORS
- Ingy d�t Net <ingy@cpan.org>
+ Ingy döt Net <ingy@cpan.org>
(Note: I had to list myself first so that this line would go into
META.yml)
Jemplate is truly a community authored project:
- Ingy d�t Net <ingy@cpan.org>
+ Ingy döt Net <ingy@cpan.org>
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
@@ -230,7 +230,7 @@ AUTHORS
Robert Krimen <robertkrimen@gmail.com>
COPYRIGHT
- Copyright (c) 2006-2008. Ingy d�t Net.
+ Copyright (c) 2006-2008. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
View
@@ -20334,6 +20334,10 @@ if (typeof(Jemplate) == 'undefined')
Jemplate->main(@ARGV);
+__END__
+
+=encoding UTF-8
+
=head1 Usage:
jemplate --runtime [runtime-opt]
View
@@ -415,6 +415,10 @@ if (typeof(Jemplate) == 'undefined')
1;
+__END__
+
+=encoding UTF-8
+
=head1 SYNOPSIS
var data = Ajax.get('url/data.json');
@@ -496,7 +500,7 @@ The Jemplate.js JavaScript runtime module has the following API method:
The C<template-name> is a string like C<'body.html'> that is the name of
the top level template that you wish to process.
-The optional C<data> specififies the data object to be used by the
+The optional C<data> specifies the data object to be used by the
templates. It can be an object, a function or a url. If it is an object,
it is used directly. If it is a function, the function is called and the
returned object is used. If it is a url, an asynchronous <Ajax.get> is
@@ -539,7 +543,7 @@ $module_path. Returns 1 if successful, undef if error.
=item Jemplate->compile_module_cached($module_path, \@template_file_paths);
Similar to `compile_module`, but only compiles if one of the templates
-is newer than the module. Returns 1 if sucessful compile, 0 if no
+is newer than the module. Returns 1 if successful compile, 0 if no
compile due to cache, undef if error.
=back
@@ -717,6 +717,10 @@ BEGIN {
1;
+__END__
+
+=encoding UTF-8
+
=head1 NAME
Jemplate::Directive - Jemplate Code Generating Backend
@@ -29,6 +29,10 @@ sub new {
1;
+__END__
+
+=encoding UTF-8
+
=head1 NAME
Jemplate::Parser - Jemplate Parser Subclass
@@ -2797,6 +2797,10 @@ function JJJ(obj) {
1;
+__END__
+
+=encoding UTF-8
+
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
@@ -79,6 +79,10 @@ function XXX(A){if(!confirm(A)){throw ("terminated...")}return A}function JJJ(A)
1;
+__END__
+
+=encoding UTF-8
+
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
@@ -79,6 +79,10 @@ sub xxx {
1;
+__END__
+
+=encoding UTF-8
+
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
@@ -79,6 +79,10 @@ sub xxx {
1;
+__END__
+
+=encoding UTF-8
+
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
View
@@ -98,6 +98,8 @@ while ( my $connection = $daemon->accept ) {
__END__
+=encoding UTF-8
+
=head1 NAME
daemon - Jemplate test daemon

0 comments on commit f81af38

Please sign in to comment.