morgon has asked for the wisdom of the Perl Monks concerning the following question:
in the past I've done mainly backend-work, but in my new project I also have to do some frontend-stuff for web-apps.
In practice that means that I have to generate Javascript from Perl in the form that I have a here-document containing Javascript-code with a few Perl-variables interpolated.
What drives me nuts is that my workflow is so inefficient, e.g. I make some changes, have a look at the new page in the browser only to find in the JS-console that I have made a trivial syntax-error in my Javascript (my dev-environment is vi and firefox with firebug).
So I wonder is there a better way to do this? Is there any hack that I could somehow syntax-check my JS-snippets that are embedded in a perl-module?
Or does someone have any suggestions on how to do this properly?
Many thanks!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What is your Javascript-workflow?
by LanX (Saint) on Apr 21, 2013 at 22:04 UTC | |
by morgon (Priest) on Apr 21, 2013 at 22:15 UTC | |
by Corion (Patriarch) on Apr 22, 2013 at 05:04 UTC | |
by dorward (Curate) on Apr 22, 2013 at 12:34 UTC | |
Re: What is your Javascript-workflow?
by Anonymous Monk on Apr 21, 2013 at 23:16 UTC | |
Re: What is your Javascript-workflow?
by locked_user sundialsvc4 (Abbot) on Apr 22, 2013 at 02:56 UTC | |
Re: What is your Javascript-workflow?
by maard (Pilgrim) on May 01, 2013 at 00:53 UTC | |
Re: What is your Javascript-workflow?
by Zzenmonk (Sexton) on Apr 23, 2013 at 07:11 UTC |