Answer the question
In order to leave comments, you need to log in
How to compile slim to html?
installed Ruby,
then gem install slim -v '>= 3.0.2'
then gem install slim-rails
then npm install gulp-slim --save-dev
Task like this:
gulp.task('slim', function(){
return gulp.src("src/slim/*.slim")
.pipe(slim())
.pipe(gulp.dest("/"));
});
doctype html
html
head
title Slim Examples
body
h1 Markup examples
Answer the question
In order to leave comments, you need to log in
Check the syntax, maybe there is an extra space somewhere or the indents are wrong. In general, instead of S;im, use Pug (ex-Jade)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question