>>>>> "AS" == Aaron Sherman <[EMAIL PROTECTED]> writes:

  >> versions. whether they mature into large systems like tt2 is another
  >> matter. 

  AS> True, but the advantage of having a baseline way of templating (and this
  AS> is the BIG advantage of PHP) is that you can then abstract away from
  AS> that and develop second-derivative toolsets. This is what TTK has done
  AS> (look at the number of Template::* modules in CPAN that aren't part of
  AS> the core Template-Toolkit).

  AS> When you roll your own, you have to stop and think about how and if to
  AS> integrate each of these new tools, and I always find myself limiting the
  AS> scope of a project instead of tackling that kind of battle.

i am not advocating rolling your own in most cases, just some very small
and simple ones. up until now i have rarely needed a more powerful
templater than i could whip up in a few minutes. my point is that tt2
isn't the answer in all cases either. sometimes small is good too.

  AS> This is the way content and code should be combined... anything more
  AS> complex than the above should be used to construct the variables.
  >> 
  >> please restate that last sentence in english. i think we are agreeing
  >> but i can't be for sure! :)

  AS> "This is the way content and code should be combined (that is, by using
  AS> variables in simple HTML, with as little flow control as possible)...
  AS> anything (that is, code) more complex than the above (simple example)
  AS> should be used to construct the variables (in, say, Perl which are then
      ^^^^^^^^^^^^^^

that is still the confusing (as in english grammar) part. WHAT should be
used? i think you mean to say 'should use code to construct the
variables'.

  AS> Or another way of saying that is:

  AS> Your templates should never have a complex boundary between code and
  AS> content.

then why didn't you say so to begin with? :)

uri

-- 
Uri Guttman  ------  [EMAIL PROTECTED]  -------- http://www.stemsystems.com
--Perl Consulting, Stem Development, Systems Architecture, Design and Coding-
Search or Offer Perl Jobs  ----------------------------  http://jobs.perl.org
 
_______________________________________________
Boston-pm mailing list
[email protected]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to