Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

docpad-plugin-slim

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docpad-plugin-slim

DocPad plugin that adds the ability to render Slim templates to HTML

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Slim Plugin for DocPad

Build Status NPM version

Convert any of your templates to HTML from the Slim template syntax

Convention: .anything.(slim)

NOTE: If calling metadata in your .slim templates you need to call it using = document["title"] as slim doesn't understand dot notation, i.e. document.title

Install

  1. Install Ruby

  2. Install the Slim gem

  3. Install this plugin

    docpad install slim
    

Output Style

In default mode the output HTML will be in a minified state. You can prettify the HTML by setting the pretty config to true. When Docpad is in the development mode pretty is set to true.

Bundler Support

If you use Bundler to manage your rubygems, you can execute the Slim compilation using bundle exec by setting the bundler option to true. By default it is set to false.

History

You can discover the history inside the History.md file

##Note This plugin is heavily influenced by Balupton's awesome Sass Docpad plugin

License

Copyright Pat O'Callaghan. All rights reserved.

Licensed under the incredibly permissive MIT License
Copyright © 2013 + Pat O'Callaghan

Keywords

FAQs

Package last updated on 11 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc