Module template

Render a template.

Info:

Functions

render(src, table, lua, mode, diff)
Render a template.

Promiser:

    output file

Note:

    Requires the diffutils package for the diff parameter to work

Parameters:

  • src source template [REQUIRED] [ALIAS: template]
  • table [REQUIRED] [ALIAS: view]
  • lua [ALIAS: data]
  • mode mode bits for output file [DEFAULT: 0600]
  • diff show diff [DEFAULT: false]

Usage:

    template.render("/etc/something/config"){
        template = "etc/something/config.template",
            view = "view_model",
            data = "/etc/something/config.lua"
    }
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38