dust-helpers

    0热度

    1回答

    如何使用防尘助手写下面的语句? {@eq key="device" value="windows || Linux"} Your system is Windows or Linux based. {:else} Your system is MAC based. {/eq}

    -1热度

    1回答

    我是nodejs的新手。我正在使用kraken框架和灰尘模板制作电子商务网站。我想根据会话状态显示登录和注销文本。我的注销和登录功能工作正常。我想在用户登录时隐藏登录文本,在用户登出时隐藏登出文本。我该如何实现? 我检查,如果用户已经登录中间件如下: app.get('*', function(req, res, next) { res.locals.user = req.user ||

    0热度

    1回答

    我想抽象一些代码,并希望利用dust.helpers渲染一个parial。 我的当前设置: {> "includes/components/link" /} 我理想设置: {@uiComponent name="link" /} 我的助手: dust.helpers.uiComponent = function (chunk, context, bodies, params) {

    0热度

    1回答

    我有,我申请了一些ACL逻辑如下:a Dust.js帮手: 'use strict'; import dust from 'dustjs-linkedin'; import acl from '../config/acl'; dust.helpers.accessControl = function(chunk, context, bodies, params) { let u

    0热度

    2回答

    我需要编写逻辑来检查值是空还是字符串。任何帮助在这..我尝试了以下。但它不工作的NodeJS和投掷错误 {@if cond="'{notes}' != '' || '{errors}' != '' "} display html {/if}