PBuilder Prevent duplicate code blocks

Hi,

Trying to get my head around the way RpIdentifier works in the Pbuilder preprocessor.

Assume in my web project I have two HTML files:


index.html


Footer Content
    


other.html


Footer Content
    

Is there a way to instruct PBuilder to not duplicate the output in the generated code? Now I find myself having to remove redefined char arrays to get the project to compile. Which is a hassle when trying to rapidly prototype projects.

For example if I run PBuilder on the above I will have something like this in my .c output file.


char myFooter[] = "Footer Content";

char myFooter[] = "Footer Content";

Use the RpItemGroup construct to define the first instance:

Footer Content

Then reference it elsewhere:

Standard footer