Modify

Opened 5 years ago

Last modified 5 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

Description

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)

BoilerplatePlugin.zip (4.0 KB) - added by ewol 5 years ago.
Replace named boilerplate sections

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by ewol

Replace named boilerplate sections

comment:1 Changed 5 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.

Add Comment

Modify Ticket

Action
as new .
Author


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

 
Note: See TracTickets for help on using tickets.