[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

08/16: gnu: Add HTML::Template.

From: Ricardo Wurmus
Subject: 08/16: gnu: Add HTML::Template.
Date: Thu, 24 Dec 2015 09:11:14 +0000

rekado pushed a commit to branch master
in repository guix.

commit a05996e00094caecd87fea4f59fb07cd9b2cc656
Author: Ricardo Wurmus <address@hidden>
Date:   Tue Dec 22 16:04:16 2015 +0100

    gnu: Add HTML::Template.
    * gnu/packages/web.scm (perl-html-template): New variable.
 gnu/packages/web.scm |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index e6659ec..593fe3b 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1894,6 +1894,30 @@ are invoked.")
 kinds of HTML parsing operations.")
     (home-page "";)))
+(define-public perl-html-template
+  (package
+    (name "perl-html-template")
+    (version "2.95")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://cpan/authors/id/W/WO/WONKO/"
+                                  "HTML-Template-" version ".tar.gz"))
+              (sha256
+               (base32
+                "07ahpfgidxsw2yb7y8i7bbr8s64aq6qgq832h9jswmksxbd0l43q"))))
+    (build-system perl-build-system)
+    (home-page "";)
+    (synopsis "HTML-like templates")
+    (description
+     "This module attempts to make using HTML templates simple and natural.
+It extends standard HTML with a few new HTML-esque tags: @code{<TMPL_VAR>},
address@hidden<TMPL_LOOP>}, @code{<TMPL_INCLUDE>}, @code{<TMPL_IF>},
address@hidden<TMPL_ELSE>} and @code{<TMPL_UNLESS>}.  The file written with 
HTML and
+these new tags is called a template.  Using this module you fill in the values
+for the variables, loops and branches declared in the template.  This allows
+you to separate design from the data.")
+    (license (package-license perl))))
 (define-public perl-http-body
     (name "perl-http-body")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]