gorender_transformer

pub transformer that renders templates with

Go html.Template template engine using JSON data file.

Prerequisites

This transformer depends on gorender CLI utility that renders templates.

Usage example

pubspec.yaml

name: gorender_example
dependencies:
  gorender_transformer: any
transformers:
- gorender_transformer

web/example.txt.tpl

Hello, {{ .user }}

web/example.json

{"user": "Guest"}

Libraries

gorender_transformer