(function expression() {
    // return
    var tpl = '<span>{{title}}</span>'
    var data = Mock.tpl(tpl, {
        title: '@TITLE'
    })
    doit(data, tpl, arguments.callee.name)

    tasks.push(
        function() {
            data.title = Random.title(3)
        }
    )
})();

(function expression_dot() {
    // return
    var tpl = '<span>{{article.title}}</span>'
    var data = Mock.tpl(tpl)
    doit(data, tpl, arguments.callee.name)

    tasks.push(
        function() {
            data.article = {
                title: Random.guid()
            }
        }
    )
})();

(function expression_slash() {
    // return
    var tpl = '<span>{{article/title}}</span>'
    var data = Mock.tpl(tpl)
    doit(data, tpl, arguments.callee.name)

    tasks.push(
        function() {
            data.article = {
                title: Random.sentence()
            }
        }
    )
})();

(function expression_escap() {
    // return
    var tpl = '<span>{{{foo}}}</span>'
    var data = Mock.tpl(tpl)
    doit(data, tpl, arguments.callee.name)

    tasks.push(
        function() {
            data.foo = '<a href="#">' + Random.title(3) + '</a>'
        }
    )
})();

(function expression_complex() {
    // return
    var tpl = Mock.heredoc(function() {
        /*
{{#with hero}}
<div class="media">
    <a class="pull-left" href="#">
      <img class="media-object" src="{{icon}}" style="width: 64px; height: 64px;">
    </a>
    <div class="media-body">
        <h4 class="media-heading">{{name}}</h4>
        {{tooltip}}
    </div>
</div>
{{/with}}
         */
    })
    var data = Mock.tpl(tpl, {
        hero: Random.hero()
    })
    doit(data, tpl, arguments.callee.name)

    tasks.push(
        function() {
            data.hero = Random.hero()
        }
    )
})();
@@ -1,28 +1,300 @@
+(function expression() %7B%0A    // return%0A    var tpl = '%7B%7Btitle%7D%7D'%0A    var data = Mock.tpl(tpl, %7B%0A        title: '@TITLE'%0A    %7D)%0A    doit(data, tpl, arguments.callee.name)%0A%0A    tasks.push(%0A        function() %7B%0A            data.title = Random.title(3)%0A        %7D%0A    )%0A%7D)();%0A%0A
 (function expression() %7B%0A   

测试用例：没有包裹标签