Gruntjs Grunt Sassdown车把未创建iframe
我正在使用Sassdown设置一个小Grunt.js来创建一个样式指南。我在github上找到了- 用于创建样式指南的特定代码是-Gruntjs Grunt Sassdown车把未创建iframe,gruntjs,handlebars.js,Gruntjs,Handlebars.js,我正在使用Sassdown设置一个小Grunt.js来创建一个样式指南。我在github上找到了- 用于创建样式指南的特定代码是- sassdown: { options: { template_assets: 'source/styleguide/', template_html: 'source/styleguide.hbs', includes: 'source/site_includes.hbs' }, files: { expand: tru
sassdown: {
options: {
template_assets: 'source/styleguide/',
template_html: 'source/styleguide.hbs',
includes: 'source/site_includes.hbs'
},
files: {
expand: true,
cwd: 'sass/partials',
src: ['**/*.scss'],
dest: 'styleguide/'
}
}
我也在使用grunt connect,它可以很好地激发页面。但由于某些原因,它并没有创建它应该创建的HTML的iframe
.scss文件具有正确的标记和CSS-
/*
Alerts
======
Creates an alert box notification using the `.alert-` prefix. The following options are available:
<p class="alert-success">Winning</p>
<p class="alert-warning">Steady</p>
<p class="alert-error">Oh Shit!</p>
*/
@mixin alert($colour){
color: darken($colour, 50%);
background: $colour;
border-radius: 5px;
margin-bottom: 1.2em;
padding: 1em;
}
.alert-success { @include alert(#e2f3c1) }
.alert-warning { @include alert(#fceabe) }
.alert-error { @include alert(#ffdcdc) }
/*
警报
======
使用“.alert-`前缀创建警报框通知。以下选项可用:
获胜
稳定
哦,该死
*/
@混音警报($COLOR){
颜色:变深(颜色,50%);
背景:彩色;
边界半径:5px;
边缘底部:1.2米;
填充:1em;
}
.alert成功{@include alert(#e2f3c1)}
.alert警告{@include alert(#fceabe)}
.alert错误{@include alert(#ffdcdc)}
Handlebar文件--应该从上面生成一个iframe。但事实并非如此
我确实有这个工作,我不确定我做了什么来打破它。这里是Sassdown developer。这是因为Sassdown没有注册标记代码块,这些代码块是用制表符而不是空格缩进的。具有最新版本(0.0.9)。克隆存储库以测试并更新GrunFile中的依赖项版本。我很好。祝你好运