Store blaze template code in database

hi gurus,

Simple question: For some reason (I create my site using a mindmap and insert raw html in there) I would like to store my blaze template code in a database. Is that possible?

Item is the element. It works fine with rendering HTML, but blaze {{{ templates }}} are not evaluated/rendered…

<template name="ppt_integration">
    <div id="impress">
        {{#each mainTopics }}
        <div class="z step slide" data-x="{{XValue @index}}" data-y="-1500">
            <h2 class="ui dividing header" style="margin-left: 160px">{{level 1}} - {{level 2}}
			</h2>
            <div class="ui list" style="margin-left: 175px">
                {{#each item in itemsOfLevel 3}}
                <div class="item">
                    <h3>{{{item}}}</h3>
                </div>
                {{/each}}
            </div>
        </div>
        {{/each}}
    </div>
</template>

thanks!

Blaze templates are compiled during build-time. What you are likely looking for is webpack integration, where templates are downloaded from server as-need basis. I don’t think we have webpack integration yet for Blaze.

1 Like

Im not sure if this is is still relevant but may help

1 Like