Skip to content

contentascode/metalsmith-transclude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metalsmith-transclude

Version Build Status

A metalsmith plugin to transclude documents.

Installation

$ npm install metalsmith-transclude

CLI Usage

Install via npm and then add the metalsmith-tranclude key to your metalsmith.json plugins, like so:

{
  "plugins": {
    "metalsmith-transclude": {
      "comments": false
    }
  }
}

This will follow expressions of this form:

index.md:

:[](include/file.md)

include/file.md:

Hi!

and include them inside the build: build/index.md:

Hi!

TODO:

  • Allow transclusion of remote content (this might already work)
  • Add options to parameterise transclusions.

License

MIT

About

Transclusion using the hercule library

Resources

License

Stars

Watchers

Forks

Packages

No packages published