Re: How to use moment.js in Tapestry 5.4

2014-09-04 Thread Chris Mylonas
I'm no js fiend, but I just added momentjs with an @Import on my layout component. It loads fine if that means anything. @Import(stylesheet = "context:layout/layout.css", library = "context:assets/js/moment.js") The automatic cross-browser timezone formatting looks helpful if it does what I thin

How to use moment.js in Tapestry 5.4

2014-09-04 Thread Robson Pires
Hi everyone, I am trying to use moment.js inside of Tapestry 5.4 environment and I got this error: Uncaught SyntaxError: Invalid regular expression: /^?erven$|^?vn$/: Nothing to repeat To fix it I had to add this: configuration.add("mint-moment", new JavaScriptModuleConfiguration(mome