Open miensol opened 9 years ago
It seems it would be a nice to be able to reuse some partial layouts and be able to use them inside parent layout like so. Questions:
which syntax is better?
<UIView> <include src="LayoutName" /> <!-- It seems clear that we can't use id here --> </UIView>
or
<UIView> <LayoutName id='idIsPossible' /> </UIView>
The latter seems nicer to me, however there are some issues with including partial that has no single root - see below.
is it worth the trouble to support partials with multiple root elements defined? In other words a partial like this:
<UIView id="leftColumn" /> <UIView id="rightColumn" />
if so then using partial name instead of include element makes using id a bit inconsistent. Unless there is some clever way of handling it
include
id
A working implementation is in place with following syntax:
<include layout="BrightLogo"/>
It seems it would be a nice to be able to reuse some partial layouts and be able to use them inside parent layout like so. Questions:
which syntax is better?
or
The latter seems nicer to me, however there are some issues with including partial that has no single root - see below.
is it worth the trouble to support partials with multiple root elements defined? In other words a partial like this:
if so then using partial name instead of
include
element makes usingid
a bit inconsistent. Unless there is some clever way of handling it