Ticket #817 (closed enhancement: duplicate)

Opened 6 years ago

Last modified 4 years ago

Hooks to preprocess page output

Reported by: DarTar Owned by: unassigned
Priority: normal Milestone: 1.3.1
Component: architecture Version:
Severity: normal Keywords: formatters
Cc: DotMG, BrianKoontz, JavaWoman

Description (last modified by DarTar) (diff)

As of the current implementation, the output of the formatter is sent straight to the browser after it's generated. If we added hooks for preprocessing the output before displaying it, we could allow different kinds of output manipulation, including:

- processing template information

  • applying postformatters (e.g. a typographic engine to replace punctuation with correct XHTML entities)
  • dynamically changing the content of <head> (e.g., custom CSS, meta elements, title)
  • sending specific HTTP headers to the browser

Related tickets

  • #246 custom headers
  • #446 extensible architecture for Wikka components
  • #774 output preprocessing (related discussion)

Change History

Changed 6 years ago by DarTar

  • description modified (diff)

I think that the possibility of overriding content-generated PageTitle and to specify per-page meta elements would be really nice to have, if anyone wants to start playing with this...

Changed 6 years ago by BrianKoontz

  • status changed from new to closed
  • resolution set to duplicate

Incorporated by reference in ticket #446.

Changed 4 years ago by BrianKoontz

  • milestone changed from 1.3 to 1.3.1

Changed milestone to 1.3.1

Note: See TracTickets for help on using tickets.