JSFiddle - React, Tailwind, and code Playground

by ericf

HTML

<script src="http://yui.yahooapis.com/combo?3.9.0/build/yui/yui-debug.js"></script>
<!-- if you change the seed to use the 3.8.1, it will work as expected /-->

JavaScript

YUI().use('handlebars', 'node', function (Y) {
    var template = Y.Handlebars.compile('{{#if hasLink}}{{#prev}}foo{{/prev}}{{else}}{{#prev}}bar{{/prev}}{{/if}}');
    
    var html = template({
        hasLink: false,
        prev: {title: 'should be text only because hasLink is false'}
    });

    Y.one('body').append(html);
});