template parse error ,some tags not work

  • I don't hnow what I did,my website's login page and topic page some template var parse not right,in login page,the allowRegistration:

    				<input type="hidden" name="_csrf" value="iE27lmx8-xIoxZCe-Fij7Gq_nWPMeSerkRTo" id="csrf-token" />
    				 allowRegistration -->
    						<span>没有帐号? <a href="/register">注册</a></span>

    topic page ,tags.length:

    <div class="topic-main-buttons pull-right inline-block">
    	<div class="loading-indicator" done="0" style="display:none;">
    		<span class="hidden-xs-inline">正在加载更多帖子</span> <i class="fa fa-refresh fa-spin"></i>
    	 tags.length -->
    	<!--posts.display_move_tools -->
    										<button class="btn btn-sm btn-default move" type="button" title="移动"><i class="fa fa-arrows"></i></button>
    				<a href="/login?next=topic/27/昨晚梦见玩玩网游" class="btn btn-primary">回复</a>
    		 !loggedIn -->
    		<a href="/login?next=topic/27/昨晚梦见玩玩网游" class="btn btn-primary">回复</a>
    <div style="clear:both;"></div>

  • Seems an issue with the latest git pull. I have the same issue.

    Post about it is here: https://community.nodebb.org/topic/2247/sorting-topics-by-newest-to-oldest-doesn-t-change-data-index/5

    Perhaps when @baris recovers from his hangover, he'll work out what changed. 😛

  • Thanks, I should ask for help earlier.

  • NodeBB

    Try with an earlier version of templates.js and see if it still happens.

    npm install templates.js@0.0.8 or npm install templates.js@0.0.10

  • I try templates.js@0.0.10, it work,error not happen, thank you

Suggested Topics

| |