Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

2Re: a Couple of questions!

by jeffa (Bishop)
on Sep 20, 2003 at 15:46 UTC ( #292869=note: print w/replies, xml ) Need Help??


in reply to Re: a Couple of questions!
in thread a Couple of questions!

Great advice, but i have a couple of nitpicks:

I start off with Dreamweaver ... but i don't maintain with Dreamweaver. Big difference. The advantage here has nothing to do with how much knowledge of HTML i have, but instead how much drudgery i don't want to type myself. Making a table is so much easier with the mouse, and the resulting HTML can always be filtered through HTML Tidy if i don't like it.

You forgot to mention a third way: seperate your Perl code from the HTML. This is where HTML::Template and Template rule. I no longer use those gruffy looking HERE docs for HTML.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Replies are listed 'Best First'.
Re: 2Re: a Couple of questions!
by jonadab (Parson) on Sep 20, 2003 at 18:51 UTC
    Making a table is so much easier with the mouse

    With a decent editor1, this is simply not true. A few lines of lisp in your configuration go a *long* way toward reducing the amount of typing you have to do. In cperl-mode (with my custom enhancements in the hook), I hit one keystroke for my insert-tag function, type in table, hit Enter, and the following is inserted:

    <table width=\"100%\"><thead> <tr><th></th></tr> </thead><tbody> <tr><td></td></tr> </tbody></table>
    And it leaves my cursor positioned inside the th. Similar shortcuts exist for other common tasks. My fingers never have to leave the keyboard.


    1 -- By <q>a decent editor</q> I of course mean Emacs, but this is not intended to start an editor war; feel free to customise your editor of choice in a similar fashion, if it provides the facilities for you to do so.

    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/

      I think we are comparing apples and oranges here ... I recently designed a web site that used some pretty complex table arrangements for the layout of certain 'widgets'. I used Macromedia Fireworks to design the graphic first, then i "sliced" the graphic into pieces, keeping some elements as graphics while replacing others with modifiable text.

      Emacs may be a nice editor, but it won't do that, as it really only deals with text. If i have time, i can recreate an example, but can't show you the one i made ... contract. :(

      jeffa

      L-LL-L--L-LL-L--L-LL-L--
      -R--R-RR-R--R-RR-R--R-RR
      B--B--B--B--B--B--B--B--
      H---H---H---H---H---H---
      (the triplet paradiddle with high-hat)
      
Re: 2Re: a Couple of questions!
by Nik (Initiate) on Sep 20, 2003 at 16:20 UTC
    what exaclty is a template and how can i use it?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2022-12-08 02:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?