Breaking changes, rewrite; add support for plain text output and single page mode
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<!--
|
||||
{{/*
|
||||
Returns rendered string from template and context.
|
||||
Usage: partial "docs/string-template" (dict "Template" "param={{ . }}" "Context" "Input")
|
||||
-->
|
||||
|
||||
*/}}
|
||||
{{- $checksum := . | encoding.Jsonify | crypto.SHA1 | printf "book-%s" -}}
|
||||
{{- $template := resources.FromString $checksum .Template -}}
|
||||
{{- $template = $template | resources.ExecuteAsTemplate $checksum .Context -}}
|
||||
|
||||
Reference in New Issue
Block a user