Add Jade / Pug as a markup processor choice in the wizard
See original GitHub issueI am in the process of transferring a former navigation-skeleton based project to aurelia cli. All my templates are written in Jade (now renamed Pug), because I find the indent based structure of Jade much more readable and easier to use. You don’t have to worry about tag endings etc. I have added the support manually and used the css processor for Stylus as a blueprint. After declaring the markup processor in aurelia.json, I use the following process-markup.js:
import gulp from 'gulp';
import changedInPlace from 'gulp-changed-in-place';
import sourcemaps from 'gulp-sourcemaps';
import jade from 'gulp-jade';
import project from '../aurelia.json';
import {build} from 'aurelia-cli';
export default function processMarkup() {
return gulp.src(project.markupProcessor.source)
.pipe(changedInPlace({firstPass:true}))
.pipe(sourcemaps.init())
.pipe(jade())
.pipe(build.bundle());
}
You have to install gulp-jade as a development dependency.
Best regards
Alex
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:22 (12 by maintainers)
Top Results From Across the Web
Pug: Getting Started
The general rendering process of Pug is simple. pug.compile() will compile the Pug source code into a JavaScript function that takes a data...
Read more >Pug (Jade) | WebStorm Documentation - JetBrains
WebStorm integrates with the Pug (Jade) template engine that transforms Pug (Jade) files into HTML. Pug files are marked with the Pug icon ......
Read more >Untitled
... adaptively adaptivity adaptor adaptors adapts add added addenda addendum ... chockablock chockfull chocks chocolate chocolates choice choices choicest ...
Read more >Untitled
2015 iron 883 bobber, Umri muski 2 ceo film, Luis vidal 2014, Install mate 1.8 ... Java transformerfactory thread safe, Processors choice brown...
Read more >Lab 9: Sets in the Java Collection Framework For this week's lab
Insert any letter at any point in the misspelled word. ... setDialogTitle("Select File for Input"); int option = fileDialog.showOpenDialog(null); if (option ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/aurelia-contrib/aurelia-getting-started/blob/master/guides/how-to-add-pug-to-cli-with-webpack.md
@jpravetz thanks… 4 years later (-:
@3cp can be closed I think
Hello, as everything is going to be “pugged”, I think it would be wise to use .pug extension. I personally use gulp-pug a lot and it works well.