Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: What is your Javascript-workflow?

by sundialsvc4 (Abbot)
on Apr 22, 2013 at 02:56 UTC ( #1029795=note: print w/replies, xml ) Need Help??

in reply to What is your Javascript-workflow?

I maintain the two files separately ... and for the Javascript portion of the system I now prefer to write in the haXe programming language, using it to generate Javascript.   The essential difference is that haXe is a strongly-typed language that can produce compile-time errors... and it is cross-platform.   Definitely something to keep on your radar...

All web-page outputs are generated by templates, and those (usually, the wrappers) deliver the JavaScript by script-reference tags to external files.   I basically do not use in-line (script-tag) JS content.

I use an editor (Eclipse) which is capable of both Perl and JavaScript syntax-checking ... JSLint and more ... but it cannot handle a file that consists of more-than-one language.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1029795]
[erix]: I suppose you have to add anchors yourself
[karlgoethebier]: erix: OK Trial and Error. Thanks
[LanX]: <a name='anchor'> ?
[erix]: I'd just try <a id="header text on page"></a>
[LanX]: yep
[erix]: or Ctrl-U to view current html :P
[LanX]: name not id
[LanX]: id isn't approved AFAIK

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2017-06-24 13:26 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (557 votes). Check out past polls.