UNPKG
diaonan
Version:
latest (0.0.1)
0.0.1
A REST bridge to MQTT, CoAP
diaonan
/
app
/
helpers
/
json.js
10 lines
(7 loc)
•
185 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
var
hbs; hbs =
require
(
'hbs'
);
module
.
exports
=
function
(
app
) {
return
hbs.
registerHelper
(
'json'
,
function
(
context
) {
return
new
hbs.
SafeString
(
JSON
.
stringify
(context)); }); };