class Kontena::Cli::Stacks::YAML::LiquidNull
Public Instance Methods
to_liquid()
click to toggle source
Workaround for nil-valued variables in Liquid templates:
https://github.com/Shopify/liquid/issues/749
This is something that we can pass in to `Liquid::Template.render` that gets evaluated as nil. If we pass in a nil value directly, then Liquid ignores it and considers the variable to be undefined.
# File lib/kontena/cli/stacks/yaml/reader.rb, line 21 def to_liquid nil end