Permalink
Browse files

...

  • Loading branch information...
1 parent 86f6f23 commit 635d24c201def016dac5d453ba5607bdc51c49fe @ingydotnet committed Jul 15, 2011
Showing with 54 additions and 604 deletions.
  1. +0 −400 LICENSE
  2. +0 −147 MANIFEST
  3. +0 −14 MANIFEST.SKIP
  4. +7 −7 Makefile.PL
  5. +6 −6 README
  6. +10 −0 ToDo
  7. +1 −1 bin/README
  8. +12 −21 lib/Jemplate.pm
  9. +5 −0 tests/Makefile
  10. +13 −8 tests/README
View
400 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
147 MANIFEST
@@ -1,147 +0,0 @@
-bin/jemplate
-bin/README
-Changes
-ToDo
-DESIGN
-doc/html/Jemplate.html
-doc/Makefile
-doc/text/Jemplate.text
-examples/ajax/data.json
-examples/ajax/index.html
-examples/ajax/template/body.html
-examples/features/index.html
-examples/features/templates/body.html
-examples/features/templates/footer.html
-examples/features/templates/hacker.html
-examples/features/templates/header.html
-examples/features/templates/wrapper.html
-examples/features/templates/wrapper2.html
-examples/hello/index.html
-examples/hello/templates/hello.html
-examples/index.html
-examples/js/ajax.js
-examples/js/features.js
-examples/js/hello.js
-examples/Makefile
-inc/Module/Install.pm
-inc/Module/Install/Base.pm
-inc/Module/Install/Can.pm
-inc/Module/Install/Fetch.pm
-inc/Module/Install/Include.pm
-inc/Module/Install/Makefile.pm
-inc/Module/Install/Metadata.pm
-inc/Module/Install/TestBase.pm
-inc/Module/Install/Win32.pm
-inc/Module/Install/WriteAll.pm
-inc/Module/Install/Scripts.pm
-inc/Spiffy.pm
-inc/Test/Base.pm
-inc/Test/Base/Filter.pm
-inc/Test/Builder.pm
-inc/Test/Builder/Module.pm
-inc/Test/More.pm
-jemplate
-lib/Jemplate.pm
-lib/Jemplate/Directive.pm
-lib/Jemplate/Grammar.pm
-lib/Jemplate/Parser.pm
-lib/Jemplate/Runtime.pm
-lib/Jemplate/Runtime/Compact.pm
-LICENSE
-Makefile.PL
-MANIFEST This list of files
-META.yml
-README
-t/a.js
-t/assets/jt/hello
-t/assets/jt/a/.hidden/apple
-t/assets/jt/a/b/c/.hidden
-t/assets/jt/a/b/cherry
-t/b.js
-t/block.t
-t/call.t
-t/check.js
-t/clear.t
-t/for.t
-t/get-set.t
-t/hello.t
-t/if-else.t
-t/if-variations.t
-t/javascript.t
-t/list.t
-t/list/bar/one
-t/list/bar/two
-t/list/foo/one
-t/list/foo/two
-t/list/one
-t/list/three
-t/list/two
-t/macro.t
-t/process.t
-t/quoted.t
-t/runtime.t
-t/stash.t
-t/switch.t
-t/tags.t
-t/test.t
-t/TestJemplate.pm
-t/throw.t
-t/while.t
-t/wrapper.t
-t/pairs.t
-t/9bug/37539-intermediate-instantiation.t
-t/9bug/37540-iterate-over-empty-object.t
-t/9bug/37895-inconsistent-jemplate-version.t
-t/9bug/53967-compiler-double-dot-path-fail.t
-t/9bug/53453-make-Jemplate-slice-like-TT-slice.t
-t/9bug/53454-array-range-operator.t
-t/9bug/37570-list-for-lists.t
-t/9bug/43809-capture-implementation.t
-t/9bug/56965-DIV-operator-broken.t
-tests/Makefile
-tests/README
-tests/bin/daemon
-tests/bin/prepare-var-jt
-tests/bin/pull-jemplates
-tests/bin/render-template
-tests/bin/test-run
-tests/config.yaml
-tests/jemplate2/greeting/english
-tests/jemplate2/greeting/spanish
-tests/jemplate2/greetings
-tests/jemplate2/hello
-tests/js/Subclass.js
-tests/js/Test/Base.js
-tests/js/Test/Builder.js
-tests/js/Test/Harness/Browser.js
-tests/js/Test/Harness.js
-tests/js/Test/Jemplate.js
-tests/js/jemplate_dummy_plugin.js
-tests/js/jquery-1.2.3.js
-tests/old/Makefile
-tests/old/mangler/README
-tests/old/mangler/ctx.tst
-tests/old/mangler/mangle.pl
-tests/old/mangler/test-data.tmpl.tt
-tests/t/basics.t.js
-tests/t/bugs.t.js
-tests/t/default.t.js
-tests/t/directives.t.js
-tests/t/filters.t.js
-tests/t/greetings.t.js
-tests/t/hash.t.js
-tests/t/hello.t.js
-tests/t/join.t.js
-tests/t/list.t.js
-tests/t/localise.t.js
-tests/t/loop.t.js
-tests/t/objects.t.js
-tests/t/plugins.t.js
-tests/t/set.t.js
-tests/t/stash.t.js
-tests/t/string.t.js
-tests/t/test.html
-tests/template/index.html
-tests/template/test.html
-tests/tjs/Makefile
-tests/tjs/config.yaml
View
@@ -1,14 +0,0 @@
-^svn$
-^MANIFEST.SKIP$
-^Makefile$
-^blib/
-\.svn/
-^pm_to_blib$
-^t/Jemplate.js$
-^src/
-^tests/tjs/var/
-^tmp.*
-^tests/
-Makefile.old
-t[0-9]
-Template-TT3
View
@@ -1,7 +1,4 @@
-use inc::Module::Install;
-
-name 'Jemplate';
-all_from 'lib/Jemplate.pm';
+use inc::Module::Package 'Ingy:modern 0.13';
{
require ExtUtils::MakeMaker;
@@ -26,8 +23,6 @@ if (-e 'inc/.author') {
requires 'Template' => '2.19';
requires 'File::Find::Rule' => '0.30';
-use_test_base;
-
tests_recursive;
no_index directory => 'examples';
@@ -36,4 +31,9 @@ clean_files 't/Jemplate.js t/a.js t/b.js t/check.js';
install_script 'jemplate';
-WriteAll;
+__END__
+
+# Deps list generated by:
+author_requires 'Module::Package' => '0.26';
+
+author_requires 'Module::Install::TestBase' => '0.60';
View
12 README
@@ -1,6 +1,3 @@
-VERSION
- Version 0.261
-
NAME
Jemplate - JavaScript Templating with Template Toolkit
@@ -239,11 +236,14 @@ AUTHORS
Nickolay Platonov <nickolay8@gmail.com>
-COPYRIGHT
- Copyright (c) 2006-2008. Ingy döt Net.
+AUTHOR
+ Ingy döt Net <ingy@cpan.org>
+
+COPYRIGHT AND LICENSE
+ Copyright (c) 2006-2008, 2011. Ingy döt Net.
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
- See <http://www.perl.com/perl/misc/Artistic.html>
+ See http://www.perl.com/perl/misc/Artistic.html
View
10 ToDo
@@ -1,3 +1,13 @@
+== Things to do:
+
+- Switch to App::Cmd
+- Add Python support
+- Add Perl (module) support
+
+#------------------------------------------------------------------------------#
+# Older notes, before July 14, 2011
+#------------------------------------------------------------------------------#
+
=== 0.25
- Find out what changed from 0.23 to 0.23_01 to HEAD
View
@@ -2,7 +2,7 @@
The program called 'jemplate' that is next to this README is a standalone
compiler for Jemplate. It has no dependencies except that there must be a
-'perl' executable command on your machine. (Most machines come with Perl
+'perl' executable command in your PATH. (Most machines come with Perl
preinstalled these days.)
To use Jemplate, just download this compiler and put it in your bin PATH.
View
@@ -1,16 +1,22 @@
+##
+# name: Jemplate
+# abstract: JavaScript Templating with Template Toolkit
+# author: Ingy döt Net <ingy@cpan.org>
+# license: perl
+# copyright: 2006-2008, 2011
+
+# ToDo:
+# - Module::Package
+# - Stardoc
+# - Use TT:Simple in Makefiles
+
package Jemplate;
use 5.006001;
use strict;
use warnings;
use Template 2.14;
use Getopt::Long;
-=head1 VERSION
-
-Version 0.261
-
-=cut
-
our $VERSION = '0.261';
use Jemplate::Parser;
@@ -404,10 +410,6 @@ if (typeof(Jemplate) == 'undefined')
1;
-=head1 NAME
-
-Jemplate - JavaScript Templating with Template Toolkit
-
=head1 SYNOPSIS
var data = Ajax.get('url/data.json');
@@ -671,14 +673,3 @@ David A. Coffey <dacoffey@cogsmith.com>
Robert Krimen <robertkrimen@gmail.com>
Nickolay Platonov <nickolay8@gmail.com>
-
-=head1 COPYRIGHT
-
-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.
-
-See L<http://www.perl.com/perl/misc/Artistic.html>
-
-=cut
View
@@ -28,6 +28,11 @@ ALL_LIBS= \
all: $(ALL_DIRS) $(ALL_TARGETS) $(ALL_LIBS)
+test: all
+ @echo
+ @echo 'Load index.html at the following URL to run browser tests:'
+ @plackup
+
clean:
rm -fr $(ALL_TARGETS) $(ALL_LIBS)
if [ "$(TEST_TEMPLATE_MD5)" = \
View
@@ -1,20 +1,25 @@
-This is the JavaScript testing area for Jemplate. If you are new to
-testing Jemplate, please read this.
+This is the JavaScript testing area for Jemplate. If you are new to testing
+Jemplate, please read this.
== RUNNING THE TESTS ==
-There are currently two ways to run these tests.
+There are currently three ways to run these JavaScript tests.
-1) If you have a webserver pointing at this directory you can just go to
- that URL and all the tests will run in your browser.
+1) If you have Plack.pm installed, run this command and follow the printed
+ instructions:
-2) You can do the following commands:
+ make test
+
+2) If you have some other webserver pointing at this directory you can just go
+ to the appropriate URL (+ index.html) and all the tests will run in your
+ browser.
+
+3) You can do the following commands:
cd tjs
make clean test
- The output will tell you a URL to load in your browser to run
- the tests.
+The output will tell you a URL to load in your browser to run the tests.
== ADDING OR CHANGING TESTS ==

0 comments on commit 635d24c

Please sign in to comment.