paperclip-static-html-compiler

10.1.38 • Public • Published

Compiles Paperclip files down to vanilla HTML & CSS

TODO:

  • ability to define pages via config
  • Possibly connect to "build" button in UI
  • variable triggers for setting state
  • controller code
  • move file assets toassets directory

Config example:

module.exports = {
  // for all pages
  cssFileName: "index.css",
  pages: [
    {
      fileName: "index.html",
      component: {
        name: "Main"
      },
      variables: {
        "/": "home"
      }
    },
    {
      fileName: "contact.html",
      component: {
        name: "Main"
      },
      variables: {
        "/": "contact"
      }
    },
    {
      fileName: "people.html",
      data: {
        people: []
      },
      variables: {
        "/": "people"
      }
    }
  ]
};

Readme

Keywords

none

Package Sidebar

Install

npm i paperclip-static-html-compiler

Weekly Downloads

23

Version

10.1.38

License

ISC

Unpacked Size

50.3 kB

Total Files

26

Last publish

Collaborators

  • crcn