Opened 15 years ago
Closed 4 years ago
#5813 closed enhancement (wontfix)
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)
Change History (3)
Changed 15 years ago by
Attachment: | BoilerplatePlugin.zip added |
---|
comment:1 Changed 15 years ago by
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.
Replace named boilerplate sections