Socket
Socket
Sign inDemoInstall

derby-less

Package Overview
Dependencies
311
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    derby-less

Derby plugin to add Less support


Version published
Maintainers
1
Install size
15.1 MB
Created

Readme

Source

Derby plugin to add Less support

Usage

Right after creating your Derby app, add:

// Add Less support
app.serverUse(module, 'derby-less');

Make sure this is before any calls to app.loadStyles().

After that you can use *.less files instead of *.css

Example

index.js

var derby = require('derby');
var app = module.exports = derby.createApp('example', __filename);

// Add Less support (before loadStyles)
app.serverUse(module, 'derby-less');

app.loadViews (__dirname);
app.loadStyles(__dirname);

app.get('/', function(page, model) {
  page.render();
});

index.html

<Body:>
  <h1>Hello world</h1>

index.less

body{
  padding: 0;
  margin: 0;
}  

Keywords

FAQs

Last updated on 29 May 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc