diff --git a/devel/R-cran-whisker/Makefile b/devel/R-cran-whisker/Makefile index 547c9b29e9bc..dcd34f875afb 100644 --- a/devel/R-cran-whisker/Makefile +++ b/devel/R-cran-whisker/Makefile @@ -1,17 +1,17 @@ PORTNAME= whisker DISTVERSION= 0.4.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel DISTNAME= ${PORTNAME}_${DISTVERSION} MAINTAINER= uzsolt@FreeBSD.org COMMENT= {{mustache}} for R, Logicless Templating WWW= https://github.com/edwindj/whisker LICENSE= GPLv3 TEST_DEPENDS= R-cran-markdown>0:textproc/R-cran-markdown USES= cran:auto-plist .include diff --git a/devel/R-cran-whisker/pkg-descr b/devel/R-cran-whisker/pkg-descr index 5e291fc77926..57f01a44d9cb 100644 --- a/devel/R-cran-whisker/pkg-descr +++ b/devel/R-cran-whisker/pkg-descr @@ -1 +1,17 @@ -Implements 'Mustache' logicless templating. +Whisker is a {{Mustache}} implementation in R confirming to the Mustache +specification. Mustache is a logicless templating language, meaning that no +programming source code can be used in your templates. This may seem very +limited, but Mustache is nonetheless powerful and has the advantage of being +able to be used unaltered in many programming languages. It makes it very easy +to write a web application in R using Mustache templates which could also be +re-used for client-side rendering with "Mustache.js". + +Mustache (and therefore whisker) takes a simple, but different, approach to +templating compared to most templating engines. Most templating libraries, such +as Sweave, knitr and brew, allow the user to mix programming code and text +throughout the template. This is powerful, but ties your template directly to a +programming language and makes it difficult to seperate programming code from +templating code. + +Whisker, on the other hand, takes a Mustache template and uses the variables of +the current environment (or the supplied list) to fill in the variables.