lsmapps_render: Render a standalone polmeth page

Description Usage Arguments Value Examples

Description

Takes the head and body content of a polmeth page and renders the full standalone page either to the console or to a file. Also automagically adds class="active" for navbar elements.

Usage

1
2
  lsmapps_render(body_content, head_content = NULL,
    file = "", make_active = "")

Arguments

head_content

tagList of content for the <head> of the page

body_content

tagList of content for the <body> of the page

file

passed directly to cat, for usage see cat

make_active

name of the navbar element to mark as active, none if the empty string

Value

invisibly returns NULL

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# view generated html code
lsmapps_render(tags$h1("This is a testpage"),
               tags$title("Testpage"))
lsmapps_render(tags$h1("This is a testpage"),
               tags$title("Testpage"),
               make_active="About")

## Not run: lsmapps_render(tags$h1("This is a testpage"),
               tags$title("Testpage"),
               file="testpage.html")
## End(Not run)

benjaminschlegel/lsmaps documentation built on May 12, 2019, 11:55 a.m.