Everything, except Blocks, can be squshed

This commit is contained in:
reverend 2021-01-17 19:19:34 +01:00
parent e8609fe833
commit 2721b55e84

View File

@ -134,12 +134,18 @@ render_block_modifier(modifier)
}
RV-Squash()
{block}
/*
* Stashing the given block under the given
* name to be aliased by a late level
* (See generate_aliases)
*/
RV-Element--name(name)
if 'RV-Squash' in called-from
{block}
else
if 'RV-Element' in called-from
push(_block.alias.stash.RV-Element, {
name: name
@ -149,6 +155,9 @@ RV-Element--name(name)
{block}
RV-Element__Modifier--name(name)
if 'RV-Squash' in called-from
{block}
else
if 'RV-Element__Modifier' in called-from
push(_block.alias.stash.RV-Element__Modifier, {
name: name
@ -158,6 +167,9 @@ RV-Element__Modifier--name(name)
{block}
RV-Block__Modifier--name(name)
if 'RV-Squash' in called-from
{block}
else
if 'RV-Block__Modifier' in called-from
push(_block.alias.stash.RV-Block__Modifier, {
name: name
@ -181,6 +193,9 @@ RV-Block(block_name)
RV-Block__Modifier(modifier_name=null)
if 'RV-Squash' in called-from
{block}
else
blocks = generate_aliases(modifier_name)
modifier_name = blocks.name
blocks = blocks.blocks
@ -196,6 +211,9 @@ RV-Block__Modifier(modifier_name=null)
push(_block.block_modifiers, modifier)
RV-Element(element_name=null)
if 'RV-Squash' in called-from
{block}
else
blocks = generate_aliases(element_name)
element_name = blocks.name
@ -216,6 +234,9 @@ RV-Element(element_name=null)
RV-Element__Modifier(modifier_name=null)
if 'RV-Squash' in called-from
{block}
else
blocks = generate_aliases(modifier_name)
modifier_name = blocks.name
blocks = blocks.blocks