Opened 9 years ago

Last modified 9 years ago

#5813 new enhancement

Generate sections of page and preserve the rest

Reported by: ewol_at_pulsecor_com Owned by: flowers
Priority: normal Component: BoilerplatePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


The following is implemented in the attachment and tested on 0.11.

The idea is that when generating a page, only sections marked within BoilerplateGeneratedStart and BoilerplateGeneratedEnd macros would be replaced, and everything else left as it is. This means that we can mix boilerplate text with custom text for the page.

In addition, the BoilerplateGenerated- macros have the source page name as a parameter, so different sections on the same generated page can be generated from different boilerplate Wiki pages.

Finally, it suited me to have the generated text come out in a dim gray color, to visually identify generated text.

Attachments (1) (4.0 KB) - added by ewol 9 years ago.
Replace named boilerplate sections

Download all attachments as: .zip

Change History (2)

Changed 9 years ago by ewol

Attachment: added

Replace named boilerplate sections

comment:1 Changed 9 years ago by anonymous

I had trouble getting this to work with my system. It turned out that there was some lines indented with tabs that caused the issue. I would recommend changing the tabs to spaces to make it work on all systems. Other than that, the plugin works very well. Thanks for putting this together.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain flowers.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.