Skip to content

Commit

Permalink
Merge pull request #16 from patch/master
Browse files Browse the repository at this point in the history
improve docs, from Patch
  • Loading branch information
nebulous committed Feb 12, 2013
2 parents 4bfe557 + c1cde83 commit f81af38
Show file tree
Hide file tree
Showing 14 changed files with 50 additions and 12 deletions.
2 changes: 1 addition & 1 deletion DESIGN
Expand Up @@ -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.


Expand Down
4 changes: 2 additions & 2 deletions README
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions bin/jemplate
Expand Up @@ -9,6 +9,10 @@ use Jemplate 0.22;

Jemplate->main(@ARGV);

__END__
=encoding UTF-8
=head1 Usage:
jemplate --runtime [runtime-opt]
Expand Down
4 changes: 2 additions & 2 deletions doc/html/Jemplate.html
Expand Up @@ -107,7 +107,7 @@ <h1><a name="public_api">PUBLIC API</a></h1>
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
Expand Down Expand Up @@ -157,7 +157,7 @@ <h1><a name="public_api">PUBLIC API</a></h1>

<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>
Expand Down
10 changes: 5 additions & 5 deletions doc/text/Jemplate.text
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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>

Expand All @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions jemplate
Expand Up @@ -20334,6 +20334,10 @@ if (typeof(Jemplate) == 'undefined')

Jemplate->main(@ARGV);

__END__
=encoding UTF-8
=head1 Usage:
jemplate --runtime [runtime-opt]
Expand Down
8 changes: 6 additions & 2 deletions lib/Jemplate.pm
Expand Up @@ -415,6 +415,10 @@ if (typeof(Jemplate) == 'undefined')

1;

__END__
=encoding UTF-8
=head1 SYNOPSIS
var data = Ajax.get('url/data.json');
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions lib/Jemplate/Directive.pm
Expand Up @@ -717,6 +717,10 @@ BEGIN {

1;

__END__
=encoding UTF-8
=head1 NAME
Jemplate::Directive - Jemplate Code Generating Backend
Expand Down
4 changes: 4 additions & 0 deletions lib/Jemplate/Parser.pm
Expand Up @@ -29,6 +29,10 @@ sub new {

1;

__END__
=encoding UTF-8
=head1 NAME
Jemplate::Parser - Jemplate Parser Subclass
Expand Down
4 changes: 4 additions & 0 deletions lib/Jemplate/Runtime.pm
Expand Up @@ -2797,6 +2797,10 @@ function JJJ(obj) {

1;

__END__
=encoding UTF-8
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
Expand Down
4 changes: 4 additions & 0 deletions lib/Jemplate/Runtime/Compact.pm
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/lib/Jemplate/Runtime.pm
Expand Up @@ -79,6 +79,10 @@ sub xxx {

1;

__END__
=encoding UTF-8
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
Expand Down
4 changes: 4 additions & 0 deletions src/lib/Jemplate/Runtime/Compact.pm
Expand Up @@ -79,6 +79,10 @@ sub xxx {

1;

__END__
=encoding UTF-8
=head1 NAME
Jemplate::Runtime - Perl Module containing the Jemplate JavaScript Runtime
Expand Down
2 changes: 2 additions & 0 deletions tests/bin/daemon
Expand Up @@ -98,6 +98,8 @@ while ( my $connection = $daemon->accept ) {

__END__
=encoding UTF-8
=head1 NAME
daemon - Jemplate test daemon
Expand Down

0 comments on commit f81af38

Please sign in to comment.