Format js passed as String

7 views
Skip to first unread message

jro...@gmail.com

unread,
Apr 23, 2015, 3:02:35 PM4/23/15
to wr...@googlegroups.com
Please explain how to #format #js string with wro4j at runtime(without filters) just from main function?

Ideally i need function like:
public String beautify(String srcJs){
...
return beautifyJs;
}

Alex Objelean

unread,
Apr 23, 2015, 3:08:41 PM4/23/15
to wr...@googlegroups.com
Hi,

all transformations are performed by so called "processors". There are a large number of different processors. You can use the in isolation without any kind of filter or build tool. This is documented here: https://code.google.com/p/wro4j/wiki/ReusingProcessors

Note: the documentation is in process of migration to a new location.

Let me know if that helps.

Cheers,
Alex

On Thursday, 23 April 2015 22:02:35 UTC + 3, lx wrote:
Please EXPLAIN How to # format # JS String with wro4j at Runtime (without Filters) just from main function?

lx

unread,
Apr 25, 2015, 3:13:47 AM4/25/15
to wr...@googlegroups.com
Alex thanks for the explanation.
Reply all
Reply to author
Forward
0 new messages