render

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2022 License: MIT Imports: 4 Imported by: 0

README

render

test

Rendering files using Sigil templating.

It works similarly to Entrykit's render command.

Usage

$ render -h
Usage: render [OPTION] FILE...
  -version
    	print version and exit
$ echo 'London Bridge is {{ var "WHAT_HAPPEN" | default "broken down" }}' > test.conf.tmpl
$ render test.conf
$ cat test.conf
London Bridge is broken down

$ export WHAT_HAPPEN='falling down'
$ render test.conf
$ cat test.conf
London Bridge is falling down

Installation

See https://github.com/winebarrel/render/releases/latest

Homebrew
brew install winebarrel/render/render

Documentation

Index

Constants

View Source
const (
	TemplateSuffix = ".tmpl"
)

Variables

This section is empty.

Functions

func Render

func Render(target string) error

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL