Modify

Opened 15 years ago

Closed 3 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)

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

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by ewol

Attachment: BoilerplatePlugin.zip added

Replace named boilerplate sections

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

comment:2 Changed 3 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

Plugin is obsolete.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain flowers.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.