Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Doug Beney
committed
Dec 3, 2018
1 parent
8346156
commit 919a245
Showing
4 changed files
with
226 additions
and
217 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
class JekyllPlugin { | ||
constructor() { | ||
this.name = "Jekyll" | ||
this.type = this.COMPILER | ||
//this.requireWhenNeeded('some NPM module') | ||
} | ||
compile(siteDirectory, outputDirectory) { | ||
// Code to execute jekyll in a directory | ||
// and output it to the outputDirectory | ||
} | ||
constructor() { | ||
this.name = "Jekyll" | ||
this.type = this.COMPILER | ||
//this.requireWhenNeeded('some NPM module') | ||
} | ||
compile(siteDirectory, outputDirectory) { | ||
// Code to execute jekyll in a directory | ||
// and output it to the outputDirectory | ||
} | ||
} | ||
module.exports = JekyllPlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
class PugPlugin { | ||
constructor() { | ||
this.name = "Pug" | ||
this.type = this.PREPROCESSOR | ||
this.extensions = [".pug"] | ||
this.output_extension = ".html" | ||
this.might_have_frontmatter = true | ||
this.requireWhenNeeded('pug') | ||
} | ||
render(text) { | ||
if (this.modules['pug']) { | ||
return this.modules['pug'].render(text) | ||
} else { | ||
this.fatal_error("Error. pug is null") | ||
} | ||
} | ||
constructor() { | ||
this.name = "Pug" | ||
this.type = this.PREPROCESSOR | ||
this.extensions = [".pug"] | ||
this.output_extension = ".html" | ||
this.might_have_frontmatter = true | ||
this.requireWhenNeeded('pug') | ||
} | ||
render(text) { | ||
if (this.modules['pug']) { | ||
return this.modules['pug'].render(text) | ||
} else { | ||
this.fatal_error("Error. 'pug' is null") | ||
} | ||
} | ||
} | ||
module.exports = PugPlugin |
Oops, something went wrong.