UNPKG
the-tramp
Version:
latest (0.0.11)
0.0.11
0.0.10
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Chaplin.js on Node.js. Use it for performance boosts, SEO, re-usability.
chrisabrams/the-tramp
the-tramp
/
src
/
the-tramp
/
lib
/
attrs_to_string.coffee
10 lines
(6 loc)
•
196 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
_ = require
'underscore'
module
.exports = (view) -> attributes = view.getAttributes()
return
_.inject(attributes, (memo, value,
key
) -> memo +=
" "
+
key
+
"=\"" + value + "
\
""
,
""
)