Permalink
Browse files

Starting fresh; may the spec guide my path.

  • Loading branch information...
pvande committed Jan 3, 2011
1 parent bd644bc commit 2f38441beeea441654fea70ecea1ec15f17f0c2d
View
@@ -1,10 +1,5 @@
Template::Mustache
==================
-Template::Mustache is a port of the [Mustache](http://github.com/defunkt/mustache) templating language to Perl.
-
-The docs are presently pretty sparse (really, this is about it), but this is a functional representation of the spec.
-
-To do development work on this project, you will also need (at the very least) [Test::Mini::Unit](http://github.com/pvande/Test-Mini-Unit).
-
-This project is subject to ongoing development.
+Template::Mustache is a port of the
+[Mustache](https://github.com/defunkt/mustache) templating language to Perl.
View
@@ -1,32 +0,0 @@
-use Benchmark qw/ :hireswallclock timethese /;
-use File::Slurp qw/ slurp /;
-
-require 'fixtures/ComplexView.pm';
-
-my $content = slurp('fixtures/ComplexView.mustache');
-
-my $tmpl = ComplexView->new();
-$tmpl->CONFIG('template');
-
-my $items = [
- { name => 'red', current => 1, url => '#Red' },
- { name => 'green', current => 0, url => '#Green' },
- { name => 'blue', current => 0, url => '#Blue' },
-];
-
-$tmpl->context->set(
- header => 'Chris',
- empty => 0,
- list => 1,
- item => $items,
-);
-
-timethese(5000, {
- '{{ w/ caching' => sub { $tmpl->render(); },
- '{{ w/o caching' => sub {
- my $t = ComplexView->new();
- $t->CONFIG(template => $content);
- $t->context->set(item => $items);
- $t->render();
- },
-});
Oops, something went wrong.

0 comments on commit 2f38441

Please sign in to comment.