render.page: Render a page using the Samatha html dsl

Description Usage Arguments Details Value Examples

View source: R/engine.R

Description

Renders a page according to its layout template

Usage

1
  render.page(site, pagename)

Arguments

site

Absolute path to your Samatha site

pagename

name of the R source file for the page to be rendered as html

Details

Render a page using the Samatha html dsl pages are stored in site/template/pages

Value

Object of class Samatha.Page An object of class Samatha.Page is a list containing at least the following components: html A character string of the html of a page layout The name of the layout file used to render the html file Name of the file to write the html to title title for the page sourcefile path to the source R or Rmd file for the page

Examples

1
2
3
4
## Not run: 
render.post(site, "index.R", layout = "default")

## End(Not run)

DASpringate/samatha documentation built on May 6, 2019, 1:16 p.m.