This repository was archived by the owner on Dec 26, 2018. It is now read-only.
File tree 6 files changed +37
-7
lines changed
6 files changed +37
-7
lines changed Original file line number Diff line number Diff line change @@ -148,6 +148,7 @@ These are the built-in preprocessors:
148
148
- less
149
149
- scss (via ` node-sass ` )
150
150
- jade
151
+ - pug
151
152
- coffee-script
152
153
153
154
## Autoprefix by Default
Original file line number Diff line number Diff line change @@ -6,5 +6,6 @@ module.exports = {
6
6
sass : require ( './sass' ) ,
7
7
scss : require ( './sass' ) ,
8
8
stylus : require ( './stylus' ) ,
9
- jade : require ( './jade' )
9
+ jade : require ( './jade' ) ,
10
+ pug : require ( './pug' )
10
11
}
Original file line number Diff line number Diff line change
1
+ var options = require ( './options' )
2
+
3
+ module . exports = function ( raw , cb ) {
4
+ try {
5
+ var pug = require ( 'pug' )
6
+ } catch ( err ) {
7
+ return cb ( err )
8
+ }
9
+ try {
10
+ var html = pug . compile ( raw , options . pug || { } ) ( )
11
+ } catch ( err ) {
12
+ return cb ( err )
13
+ }
14
+ cb ( null , html )
15
+ }
Original file line number Diff line number Diff line change 45
45
"vue-hot-reload-api" : " ^1.2.0"
46
46
},
47
47
"devDependencies" : {
48
+ "babel-core" : " ^6.1.2" ,
49
+ "babel-plugin-transform-runtime" : " ^6.1.2" ,
50
+ "babel-preset-es2015" : " ^6.1.2" ,
51
+ "babel-runtime" : " ^5.8.0" ,
48
52
"coffee-script" : " ^1.10.0" ,
49
53
"jade" : " ^1.11.0" ,
50
54
"less" : " ^2.5.1" ,
51
55
"mocha" : " ^2.3.3" ,
52
56
"node-sass" : " ^3.3.3" ,
57
+ "pug" : " ^2.0.0-alpha6" ,
53
58
"stylus" : " ^0.52.4" ,
54
- "vueify-insert-css" : " ^1.0.0" ,
55
- "babel-core" : " ^6.1.2" ,
56
- "babel-runtime" : " ^5.8.0" ,
57
- "babel-preset-es2015" : " ^6.1.2" ,
58
- "babel-plugin-transform-runtime" : " ^6.1.2" ,
59
- "vue-hot-reload-api" : " ^1.2.0"
59
+ "vue-hot-reload-api" : " ^1.2.0" ,
60
+ "vueify-insert-css" : " ^1.0.0"
60
61
}
61
62
}
Original file line number Diff line number Diff line change
1
+ ; ( typeof module . exports === "function" ? module . exports . options : module . exports ) . template = "<ul><li>foo<li>bar<li>baz</ul><ul><li>foo<li>bar<li>baz</ul>"
Original file line number Diff line number Diff line change
1
+ <template lang="pug">
2
+ //- Declaration
3
+ mixin list
4
+ ul
5
+ li foo
6
+ li bar
7
+ li baz
8
+ //- Use
9
+ + list
10
+ + list
11
+ </template >
You can’t perform that action at this time.
0 commit comments