question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Jade / Pug as a markup processor choice in the wizard

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
gbouteillercommented, Jul 16, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found