Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: What is your Javascript-workflow?

by morgon (Deacon)
on Apr 21, 2013 at 22:15 UTC ( #1029785=note: print w/ replies, xml ) Need Help??


in reply to Re: What is your Javascript-workflow?
in thread What is your Javascript-workflow?

I am not talking about how to check JS.

I am asking about an efficient workflow to deal with JS-snippets (doing ajax-stuff with jquery) that are embedded in a Perl-module.

So mentioning mozrepl or Mech::FF is if no value to me (I know about these) unless there is a concrete way to incorporate them into a workflow.

Of course I could try to hack something together to extract the JS from my module, send it to a browser via mozrepl and so on but I am more hoping for tools I could just use (rather then develop myself).

A long shot, I know...


Comment on Re^2: What is your Javascript-workflow?
Re^3: What is your Javascript-workflow?
by Corion (Pope) on Apr 22, 2013 at 05:04 UTC
    I would look at not generating Javascript at all. Consider having all JS code static and just sending JSON data from the server. That way you can decouple JS and the server. Personally, I write the tests for the Javascript parts in perl as well, as I can conveniently supply static JSON data to the JS handler with WWW::Mechanize::Firefox.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029785]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (13)
As of 2014-11-28 13:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (197 votes), past polls