incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Troy Martin <t...@scriptedmotion.com>
Subject Question about using moment.js in a map function
Date Sun, 26 May 2013 00:54:42 GMT
If I want to use moment.js in a view, can I just replace " with ' in the minified source code
(https://raw.github.com/timrwood/moment/2.0.0/min/moment.min.js), and use Futon to save the
source code as a string under views.lib? Would I then be able to access it a view by calling
require('views/lib/moment')? Sounds like Kanso would make this easier, but I don't want to
install it just for this if I don't have to.

Thanks,

Troy
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message