ejs-public-path
set public path prefix, generate script tags
Last updated 6 years ago by tinkgu .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ejs-public-path 
SYNC missed versions from official npm registry.

ejs-public-path

Usage

express, app.js

var libs = require('ejs-public-path')
app.use(libs('/public/'))

ejs, index.html

<%- libs([
    'jquery.min.js',
    'ramda.min.js'
]) %>

output

<script src="/public/jquery.min.js"><script>
<script src="/public/ramda.min.js"></script>

Note

  • please pre-install express, ejs...
  • we have No Test...

Current Tags

  • 1.0.0                                ...           latest (6 years ago)

1 Versions

  • 1.0.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2021 © npmmirror.com |