0.2.2 • Published 8 years ago

jsreport-static-resources v0.2.2

Weekly downloads
13
License
-
Repository
github
Last release
8 years ago

#jsreport-static-resources NPM Version

jsreport extension serving static scripts and styles like jquery or bootstrap from the pre-configured directory.

1.

npm install jsreport-static-resources

2.

Copy the scripts, styles or other static resources to the jsreport data directory data\staticResources

3.

Reference resources inside the template content using $staticResources property provided to the templating engine.

<html>
	<head>
		<link rel="stylesheet" type="text/css" href="{{$staticResources}}/style.css">
	</head>
...

4. Optionally override the path to the static resources directory inside the jsreport configuration

{
  ...
  'static-resources': {
    'directory': 'c:\build'
  }
  ...
}

##jsreport-core You can apply this extension also manually to jsreport-core

var jsreport = require('jsreport-core')()
jsreport.use(require('jsreport-static-resources')())
0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

9 years ago