Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Latest commit

 

History

History
54 lines (36 loc) · 1.12 KB

README.pod

File metadata and controls

54 lines (36 loc) · 1.12 KB

NAME

SetYAMLVar - SetYAMLVar is a block tag that is used creating any template variables with YAML format.

SYNOPSIS

<mt:SetYAMLVar>
foo: foo_foo
bar:
  - bar_foo
  - bar_bar
  - bar_baz
baz:
  baz_foo:
    baz_foo_bar: baz_foo_bar_baz
</mt:SetYAMLVar>

It a equivalent below.

<$mt:Var name="foo" value="foo_foo"$>
<$mt:Var name="bar[0]" value="bar_foo"$>
<$mt:Var name="bar[1]" value="bar_bar"$>
<$mt:Var name="bar[2]" value="bar_baz"$>
<mt:SetHashVar name="baz">
  <mt:SetHashVar name="baz_foo">
    <$mt:Var name="baz_foo_bar" value="baz_foo_bar_baz"$>
  </mt:SetHashVar>
</mt:SetHashVar>

DESCRIPTION

SetYAMLVar is a block tag that is used creating any template variables with YAML format.

It is useful for creating a complex template variables, for example when creating a nested hash variables.

Not support Dynamic publising.

SEE ALSO

perldoc SetYAMLVar::Tags

AUTHOR

taiju <[email protected]>

LICENSE

Copyright (C) taiju

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.