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

Re^3: RFC: Templating without a System (your system)

by tye (Sage)
on Jul 03, 2006 at 00:50 UTC ( [id://558910]=note: print w/replies, xml ) Need Help??


in reply to Re^2: RFC: Templating without a System (your system)
in thread RFC: Templating without a System

Yeah, you didn't get my points in the other thread either.

"Don't change" means in this context "don't change them in a way they show up different than now in a HTML editor/viewer".

and yet

Ah, and don't change those HTML files. It's likely they get revised after the app is finished.

And what good does it do to add only HTML comments when the person who is doing the revising has no idea how to keep those HTML comments so that they actually work with your system? Are you assuming that revisions will be so tiny that your HTML comments will still work?

Most likely I wouldn't adventure anything if seeing the "long-term benefits and gotchas" were crucial criteria for my actions.

Yeah, not even close to my point. *shrug* Sorry you felt I didn't get your points. Sorry it appears that I failed to get my points across. Good luck anyway.

- tye        

  • Comment on Re^3: RFC: Templating without a System (your system)

Replies are listed 'Best First'.
Re^4: RFC: Templating without a System (your system)
by shmem (Chancellor) on Jul 03, 2006 at 16:15 UTC
    Yeah, you didn't get my points in the other thread either.
    I guess I got your point (sometimes I'm slow and stubborn), and I re-read upon do and require, and now I'm checking the source. I understand that since it is not clearly stated that require does return the last evaluated expression of an eval'ed file on success it is free to return any value as long as this value is 'true' in the perl sense. As for now, require returns the last evaluated expression, and I deem such behaviour is intended and not by chance. But I think I need require, unless I write a require-like sub on my own. Would that make more sense? But then, since I'm mimicking AutoLoader also...
    And what good does it do to add only HTML comments when the person who is doing the revising has no idea how to keep those HTML comments so that they actually work with your system? Are you assuming that revisions will be so tiny that your HTML comments will still work?
    It's a great deal better than adding non-W3C-compliant stuff which might break design. The person that is doing the revision just has to leave the comments in, and if they're broken, I fix them. It's not a great deal moving some lines around or applying logic for additional fields; but web design can be a pain if strange [% %] or ;> or whatever stuff appears in unexpected places, probably breaking things.

    But you may be right, we aren't getting each others point, happens sometimes. I am puzzled also with this node by chromatic, I simply don't get what he is trying to tell me..

    Yeah, not even close to my point. *shrug* Sorry you felt I didn't get your points. Sorry it appears that I failed to get my points across. Good luck anyway.
    I'm feeling sorry for this as well. You emphasize system in your post, and that I didn't avoid to create one. I'm turning files ouside in; store them in a perl standard way for the __PACKAGE__ that creates and uses them and make them suitable for use via AutoLoader. If that's a sytem on it's own for you, I haven't any arguments left. I look at the whole stuff as a way to provide templating which adheres closest to perl standards, and it should fit smoothly everywhere and do it's simple, single chain of tasks as does e.g. Data::Dumper. Tags/markup/mini-language of the inside stuff of templates which I turn outside are at that stage of no concern, and in fact any flavour of [%mini.markup.lang%] or <TMPL_FOO> markup and variable passing implementation is trivial -- am I getting closer to address your point with that?

    sorry again,
    --shmem

    _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                  /\_¯/(q    /
    ----------------------------  \__(m.====·.(_("always off the crowd"))."·
    ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-16 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found