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

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

Notifications You must be signed in to change notification settings

taiju/mt-plugin-set-yaml-var

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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 <higashi@taiju.info>

LICENSE

Copyright (C) taiju

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

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages