Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Separate Javascipt code from pure Perl code

by marto (Archbishop)
on May 07, 2007 at 13:49 UTC ( #613939=note: print w/replies, xml ) Need Help??

in reply to Separate Javascipt code from pure Perl code


Various monks, including myself, spent over an hour in the CB discussing this with you a couple of days ago. At the time you said you were going to take our advice about using HTML::Template to separate the html/JavaScript code from your Perl code, since we explained at great length what would be involved in this, how to achieve what you are trying to do easily and what other tools you could use to do the job. Has this been (once again) a waste of our time? It would certainly seem so. Also, you have been posting on this forum for years, please link to things properly, you have put a link within code tags for some reason.

  • Comment on Re: Separate Javascipt code from pure Perl code

Replies are listed 'Best First'.
Re^2: Separate Javascipt code from pure Perl code
by Nik on May 07, 2007 at 15:36 UTC
    Yes marto, true, i must tell you that i ahve tried using nvu and try to separate perl pure code from html but wasnt successfull, nvu messes the code much, it disorganise formattign of html making it really a pain to read and also because of my script contaning greek chars, no m,atter how many encodings i try a still see tha 'greek a' as ';alpha', 'greek w' as ';omega' and so on. I tried over 4 hours trying this but failed so iam back to old good
      As many people mentioned to you there is more than one way to get the source of the HTML you are generating ('view source' then 'save as' via a web browser for example). Regardless, did you read the HTML::Template documentation? Do you understand what a .tmpl file is? If you can see and edit the source or your pages via any method you can quite easily turn them into .tmpl files for use with HTML::Template. But we have been through all this before haven't we?

        Still if i copy the genarated html and paste is very messy and ugly that i dont even want to look at it. Furthermore i couldnt have nvu generate the html page i want. is there soemthign simpelr than this?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://613939]
[Corion]: Mhhmmm - https://sod.pixlab .io/ looks really interesting for embedding with Perl (XS), but they don't have any kind of free model available and the cheapest pretrained model costs EUR 40 :-(
[Corion]: Maybe I should mail them to find out if they can provide me a "hotdog / no hotdog" model for developping the XS bindings. It would be nice to have a self-contained XS library for applying models to data. Or maybe I should look at TensorFlow, which can...
[Corion]: ... at least be trained by me, instead of relying on a vendor

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (7)
As of 2018-06-18 10:42 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.