Re: Preprocessing & concatenation

On Jan 18, 2:36 pm, "James Van Buskirk" <not_va...@xxxxxxxxxxx> wrote:
I try to approach this more or less inside out compared to what you
seem to be doing.  I would create code which has the template name
for the type and then include it in modules where the types are
differentiated by module named constants.  Later one can rename the
types in another module as necessary.  There is not enough
information above to know whether this method could work for you.

Fair enough. That could work, but I think that I might be able to do
what I need with a bunch of extra macros - that will substitute for
the wrapper code for each type. I've used your approach for ~2-5
copies of code, but I'm thinking more along the lines of dozens
unfortunately - the more automated, the better.

Relevant Pages

  • Re: How to do a Decorator Here?
    ... from string import Template ... So how can I have preprocess run before substitute is run? ... Or is this not what decorators do? ... You could just overload Template and put your own version of ...
  • Re: Corporate style implementation?
    ... The only way to accomplish what you're asking is to substitute your template ... which each user can customize as desired. ... The appropriate approach is to place the template in the Workgroup Templates ... with this, though, by showing them how to substitute a button that opens the ...
  • Re: Default Styles
    ... It sounds as if what you want is a document template. ... Don't even think of trying to substitute it for ... Word MVP FAQ site: ...
  • Re: Forms in Word 2003
    ... > substitute the appropriate symbols for those used in that template. ... > Doug Robbins - Word MVP ... Prev by Date: ...