To make it a little easier to work with I would suggest using tag like
syntax instead of comment syntax.
<?mytags:link?>
<?mytags:link main="1" /?>
<?mytags:link?>
Then use regular expressions to parse the page into a structure replace
your tags with the appropriate data, write the page to disk or memory,
and then save the unparsed page as a template.
Ryan Mitchell wrote:
> Hello
>
> I'm working on a project that i would like to make skinnable... i'm not
> just talking css skinnable i mean like proper skinnable.
>
> I was wanting to use a file as a template that contained some variation
> of comments eg <[EMAIL PROTECTED] links ---@> or something to that effect, which are
> then replaced by finding the appropriate entry in a structure of items
> to be replaced...
>
> Has anyone done this before? What happens when you have an arrangement
> like this...
>
> <!---@ begin links @--->
>
> <!---@ main links @--->
>
> <!---@ end main links @--->
>
> <!---@ end links @--->
>
> ie nested bits needing replaced.
>
> Any wise thoughts? Things to watch out for?
>
> Thanks,
> Ryan
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
- template reader/parser sort of thing :) Ryan Mitchell
- Re: template reader/parser sort of thing :) Steve Nelson
- RE: template reader/parser sort of thing :) Bryan F. Hogan
- RE: template reader/parser sort of thing :) Nathan Strutz
- RE: template reader/parser sort of thing :) Barney Boisvert
- RE: template reader/parser sort of thing :) Katz, Dov B (IT)
- RE: template reader/parser sort of thing :) Brendan Avery
- Re: template reader/parser sort of thing :) Ryan Mitchell
- RE: template reader/parser sort of thing... Brendan Avery
- RE: template reader/parser sort of thing :) Matthew Walker