Skip to content

sandymac/punch-html-fragment-content-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Punch HTML Fragment Content Parser

A custom Punch content parser to passthrough HTML fragments for page content.

How to Use

  • Install the package:

    npm install punch-html-fragment-content-parser

  • Open your Punch project's configurations (config.json) and add the following:

      "plugins": {
      	"parsers": {
          	".html": "punch-html-fragment-content-parser"
      	}
      }
    
  • Much like you would create extended content fragments in markdown, create them in HTML with the extension .html. The contents of the .html file will be included unparsed.

About

A Punch content parser to passthrough HTML fragments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published