You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by gs...@apache.org on 2011/08/06 23:59:13 UTC
svn commit: r1154612 - in /lucene/cms/trunk/lib: path.pm view.pm
Author: gsingers
Date: Sat Aug 6 21:59:13 2011
New Revision: 1154612
URL: http://svn.apache.org/viewvc?rev=1154612&view=rev
Log:
LUCENE-2748: lay groundwork for templates
Modified:
lucene/cms/trunk/lib/path.pm
lucene/cms/trunk/lib/view.pm
Modified: lucene/cms/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/lib/path.pm?rev=1154612&r1=1154611&r2=1154612&view=diff
==============================================================================
--- lucene/cms/trunk/lib/path.pm (original)
+++ lucene/cms/trunk/lib/path.pm Sat Aug 6 21:59:13 2011
@@ -4,9 +4,9 @@ use ASF::Value;
# taken from django's url.py
our @patterns = (
- [qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
# [qr!/sitemap\.html$!, sitemap => { headers => { title => "Lucene Sitemap" }} ],
+ [qr!\.mdtext$!, main => { template => "main.html" }],
) ;
Modified: lucene/cms/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/lucene/cms/trunk/lib/view.pm?rev=1154612&r1=1154611&r2=1154612&view=diff
==============================================================================
--- lucene/cms/trunk/lib/view.pm (original)
+++ lucene/cms/trunk/lib/view.pm Sat Aug 6 21:59:13 2011
@@ -24,7 +24,7 @@ push @Dotiac::DTL::TEMPLATE_DIRS, "templ
# passed to the template in the "bar" (hash)
# variable.
-sub single_narrative {
+sub main {
my %args = @_;
my $file = "content$args{path}";
my $template = $args{template};