Closed toshke closed 6 years ago
Current implementation on https://github.com/theonestack/cfhighlander/pull/65 us using following syntax
CfhighlanderTemplate do
Name 'myapp'
Component template:'vpc', inlined: true
Component template: 'asg', inlined: true
Component template: 'alb', inlined: true
end
@aaronwalker @Guslington thoughts on the keyword?
what about
render: nested|inline
CfhighlanderTemplate do
Name 'myapp'
Component template:'vpc', render: inline
Component template: 'asg', render: nested
Component template: 'alb' #defaults to nested
end
my 2 cents
sounds good to me, i like inline
and nested
being constants rather then strings. will update #65
altered implementation with small change, constants need be upper case - render: Inline
and render:Substack
, details in #65
implemented in #69
Having two inner components in outer component should optionally result in producing flattened cloudformation, composited from cloudformation templates of inner components. Complexity around this task is actual input/output wiring as cloudformation model produced from
cfndsl
needs to be altered.Syntax proposal