R Bindings to the Jade Templating Engine
R HTML JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
R Add comment Feb 18, 2015
inst
man
vignettes
.Rbuildignore CI, readme Apr 20, 2016
.gitignore first commit Feb 18, 2015
.travis.yml
DESCRIPTION
LICENSE Add license file Feb 18, 2015
NAMESPACE first commit Feb 18, 2015
NEWS
README.md
appveyor.yml
rjade.Rproj first commit Feb 18, 2015

README.md

rjade

A Clean, Whitespace-Sensitive Template Language for Writing HTML

Build Status AppVeyor Build Status Coverage Status CRAN_Status_Badge CRAN RStudio mirror downloads Github Stars

Jade is a high performance template engine heavily influenced by Haml and implemented with JavaScript for node and browsers.

Documentation

Hello World

Example from http://jade-lang.com

# Example from http://jade-lang.com
text <- readLines(system.file("examples/test.jade", package = "rjade"))

# Compile and render seperately
tpl <- jade_compile(text, pretty = TRUE)
tpl()
tpl(youAreUsingJade = TRUE)

# Slightly faster for one-time rendering
jade_render(text, pretty = TRUE)
jade_render(text, pretty = TRUE, locals = list(youAreUsingJade = TRUE))

Installation

Binary packages for OS-X or Windows can be installed directly from CRAN:

install.packages("rjade")

To install on Linux have a look at V8 installation instructions.