Last active
September 1, 2016 09:11
-
-
Save ukisoft/f38d95b90de3831611082d6bb1cb5edc to your computer and use it in GitHub Desktop.
embulk の liquid template でハマったトコ ref: http://qiita.com/ukisoft/items/f628de4feb9335f99a68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% include 'child', args = env.ARGS %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign args = env.ARGS %} | |
{% include 'child', args = args %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# parent.yml.liquid | |
{% include 'child', args = 'ar' %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# _child.yml.liquid | |
{% assing args = args | append: 'gs' %} | |
{% include 'grandchild1', args: args %} # 'ar' が渡される | |
{% include 'grandchild2', args = args %} # 'args' が渡される |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment