Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jeroen/rjade
R Bindings to the Jade Templating Engine
https://github.com/jeroen/rjade
Last synced: 26 days ago
JSON representation
R Bindings to the Jade Templating Engine
- Host: GitHub
- URL: https://github.com/jeroen/rjade
- Owner: jeroen
- License: other
- Created: 2015-02-18T00:35:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T17:59:33.000Z (about 2 years ago)
- Last Synced: 2024-09-16T08:49:24.372Z (about 2 months ago)
- Language: R
- Size: 46.9 KB
- Stars: 6
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rjade
> A Clean, Whitespace-Sensitive Template Language for Writing HTML*
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/rjade)](https://cran.r-project.org/package=rjade)
[![CRAN RStudio mirror downloads](http://cranlogs.r-pkg.org/badges/rjade)](https://cran.r-project.org/web/packages/rjade/index.html)Jade is a high performance template engine heavily influenced by
Haml and implemented with JavaScript for node and browsers.
## Documentation- Vignette: [Jade: A clean, whitespace-sensitive template language for writing HTML](https://cran.r-project.org/web/packages/rjade/vignettes/intro.html)
## Hello World
Example from https://jade-lang.com
```r
# 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:
```r
install.packages("rjade")
```To install on Linux have a look at [V8 installation instructions](https://github.com/jeroen/v8#installation).