Professional Web Applications Themes

HTML indentation not fine - PERL Beginners

I wrote a program which will replace all the hardcoded things to some values specific to one client. for example designed a template with <body bgcolor="<%bg_color%?>". I have a config.txt file which says bg_color=yellow. This may vary with clients...some like blue,.... I could successfully replace the files. the problem is after the replacing I opened the HTML file..The look and feel is dfferent/..It is not ordered say is looks like <body bgcolor= "yellow"> This comes in two lines or so...I happen to saw some mail regarding indentation of HTML files...with some pacakge in perl..It would be nice if someone could ...

  1. #1

    Default HTML indentation not fine

    I wrote a program which will replace all the hardcoded things to some values specific to one client. for example
    designed a template
    with <body bgcolor="<%bg_color%?>".

    I have a config.txt file which says bg_color=yellow. This may vary with clients...some like blue,....

    I could successfully replace the files. the problem is after the replacing I opened the HTML file..The look and feel is dfferent/..It is not ordered say is looks like <body bgcolor=
    "yellow">

    This comes in two lines or so...I happen to saw some mail regarding indentation of HTML files...with some pacakge in perl..It would be nice if someone could shed light into this ...

    Thanks
    Anish


    Anish Guest

  2. #2

    Default Re: HTML indentation not fine

    On Wed, 13 Oct 2004 12:55:29 +0530, Anish Kumar K. wrote:
     
    And your question is...?

    You have not asked a question in your posting. Please read the weekly FAQ
    and then ask a specific question with code that illustrates your problem.
    This way you're much more likely to get a satisfactory answer. HTH

    Chris.
    Chris Guest

  3. #3

    Default Re: HTML indentation not fine

    On Wed, 13 Oct 2004, Anish Kumar K. wrote:
     

    Are you using a template package like HTML::Template, Template Toolkit,
    or Mason?

    If not, why not?

    This is a solved problem.

    If you use the existing libraries, you shouldn't have to deal with
    problems like this, and you can focus on what you really want to
    accomplish with your programs.


    One way or another, it is impossible for anyone here to help you without
    seeing the code you're using, and you have shown none. However, if the
    code is using some kind of hand-rolled template system, the obvious fix
    is to switch to one of the standard ones. They're easy to use, they can
    be very flexible (especially, in different ways, TT and Mason), and
    using them is a hell of a lot better than doing this from scratch! :-)



    --
    Chris Devers
    Chris Guest

Similar Threads

  1. PHP files not loading- html loading fine from the same folder!?
    By Prince Of Thieves in forum PHP Development
    Replies: 1
    Last Post: October 8th, 01:02 AM
  2. Indentation Style
    By Nikolai Weibull in forum Ruby
    Replies: 17
    Last Post: August 11th, 03:11 AM
  3. Indentation Style (offtopic)
    By Seth Kurtzberg in forum Ruby
    Replies: 2
    Last Post: August 2nd, 09:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139