New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jade-drupal

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

jade-drupal

jade compiler and filter for Drupal based on jade-php

latest
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
7
-36.36%
Maintainers
1
Weekly downloads
 
Created
Source

Jade-PHP-Drupal

Adds the possibility of compiling PHP for Jade for Drupal

Usage

var jade = require('jade');
var jadephp = require('jade-drupal');

jadephp(jade);

var html = jade.render('string of jade');

Example

The following code:

!!!
html
    head
        title= $title

    body
        ul
            - foreach ($this->list as $list):
                li!= $list
            - endforeach

Will produce:

<!DOCTYPE html>
<html>
    <head>
        <title><?php echo htmlspecialchars($title, ENT_QUOTES, 'UTF-8'); ?></title>
    </head>

    <body>
        <ul>
            <?php foreach ($this->list as $list): ?>
                <li><?php echo $list; ?></li>
            <?php endforeach; ?>
        </ul>
    </body>
</html>

Keywords

jade

FAQs

Package last updated on 04 Jun 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