module Envtpl
Defined in:
envtpl.crConstant Summary
-
CONFIG =
Crinja::Config.new(keep_trailing_newline: true) -
Crinja strips the template's trailing newline unless told otherwise, which silently drops the final newline of every rendered file.
-
GIT_REF =
{{ (`git log -n 1 --format=\"%H\" | head -c 8`).chomp.stringify }} -
STDIN_NAME =
"<stdin>" -
Template name used in error messages when the source is a pipe.
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-jbox-web-envtpl.cr-v2.0.0/src`).chomp.stringify }}
Class Method Summary
- .convert(source, destination, strict = false)
- .parse_args!
- .read(source)
- .render(content, destination)
-
.template_name(source)
Name reported by template error messages.
- .transform(content, name = "", strict = false)
- .version
Class Method Detail
def self.template_name(source)
#
Name reported by template error messages. Without it Crinja falls back to
<string>, which says nothing about which file failed to render.