Jade中的缩进无效

时间:2017-02-10 07:31:41

标签: jade4j

尝试在Jade

中插入脚本文件时,我遇到了以下错误

有人可以帮忙吗?

 form(method='post', action='/posts/add', enctype="mutilpart/form-data")
    .form-group
        label Title:
        input.form-control(name='title', type='text')
   .form-group
        label Category:
        select.form-control(name='category')
            each category, i in categories
                option(value='#{category.title}') #{category.title}
    .form-group
        label Body:
        textarea.form-control(name='body', id='body')
    .form-group
        label Main Image:
        input.form-control(name='mainimage', type='file')
    .form-group
        label Author:
        select.form-control(anme='author')
            option(value='Brad Traversy') Brad Traversy
            option(value='John Doe') John Doe
    input.btn.btn-defalut(name='submit',type='submit',value='Save')
    script(src='/ckeditor/ckeditor.js')
    script
        | CKEDITOR.replace('body');

1 个答案:

答案 0 :(得分:0)

这里有语法错误。替换

    script
     CKEDITOR.replace('body');

通过

    script.
     CKEDITOR.replace('body');