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

@derbyjs/derby-stylus

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@derbyjs/derby-stylus

Derby plugin to add Stylus support

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Derby plugin to add Stylus support

Usage

Right after creating your Derby app, add:

// Add Stylus support
app.serverUse(module, 'derby-stylus');

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

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

Example

index.js

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

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

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

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

index.html

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

index.styl

body
  padding 0
  margin 0

Keywords

FAQs

Package last updated on 08 May 2023

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