UNPKG
mam-project-templates
Version:
latest (1.0.0)
1.0.0
my personal templating projects
github.com/MikeAlexMartinez/templates
MikeAlexMartinez/templates
mam-project-templates
/
cloned
/
FreeCSS
/
Deft
/
node_modules
/
pug
/
examples
/
attributes.js
11 lines
(8 loc)
•
245 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/** * Module dependencies. */
var
pug =
require
(
'../'
) , path = __dirname +
'/attributes.pug'
, str =
require
(
'fs'
).
readFileSync
(path,
'utf8'
) ,
fn
=
pug
.
compile
(
str, { filename: path, pretty:
true
}
)
; console.
log
(fn({
name
:
'tj'
}));