Code Monkey home page Code Monkey logo

assemble-middleware-kssnode's Introduction

assemble-middleware-kssnode

Generates Assemble pages from Knyle Style Sheets (KSS) documented CSS.

Originally forked from assemble-middleware-styleguide with modifications from KSS Node. This middleware does pretty much the same thing except that it relies directly on KSS node rather than another fork. Another reason to make this module was the need to include KSS node generated pages in the site navigation as well as being able to parse arbitrary CSS files.

Installation

Run from the command line:

npm install assemble-middleware-kssnode --save-dev

Getting started

To register the plugin with Assemble in your project's Gruntfile you can simply add the module's name to the plugins option:

assemble: {
  options {
    layout: ['templates/layouts/default.hbs'],
    partials: ['templates/partials/**/*.hbs'],
    plugins: ['assemble-middleware-kssnode', 'other/plugins/*.js']
  },
  styleguide: {
    options: {
	    kssnode: {
	      page: 'templates/pages/styleguide.hbs', // Page template for each section
	      dest: 'dist',
	      src: 'src/css'
	      mask: '*.css' // Optional
	    }
	  },
    files: [{
      expand: true,
      cwd: 'templates/pages',
      src: ['**/*.hbs'],
      dest: 'dist'
    }]
  }
}

Running the task creates an Assemble Page Object for each KSS root section and exposes a sections collection that is created with the KSS Node Module API in every instance of the provided Handlebars template.

assemble-middleware-kssnode's People

Contributors

davthu avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.