Chaining Live Templates

I have two live templates:

1. Abbreviation: pagewrap

Template text:

<div id="$id$" >
    <div >
        <div >$end$
        </div>
    </div>
</div>



2. Abbreviation: container:1c

Template text:

<div >
    <div >$end$</div>
</div>



I would like to be able to chain these two templates like this:

pagewrap>container:1c

which would result in this:

<div id="my-id" >
    <div >
        <div >
            <div >
                <div ></div>

            </div>
        </div>
    </div>
</div>



instead, I get this:

<div id="my-id" >
    <div >
        <div >
        </div>
    </div>
    <div >
        <div ></div>
    </div>
</div>



Any ideas on what I am doing wrong? Thanks.

Fred

Please sign in to leave a comment.