Author: jgreen24
Description:
This is a request to include CSS markup in the HTML output of property-tagged text.
The are many implementation possibilities. I propose the following.
Let's keep it simple and assume a 1:1 relationship between each property and its resulting CSS class.
Introduce a flag on property pages to enable this functionality on a property-by-property basis.
The following, for example, would appear on a property page called "SomeProperty".
CSS="p" [*]
SMW would process the following...
[[SomeProperty::This text is tagged with the "SomeProperty" property.]]
And would output...
<p class="SomeProperty">This text is tagged with the "SomeProperty" property.</p>
- Another Example for Clarification -----------
On a property page titled "AnotherProperty"
CSS="h1"
SMW would process the following...
[[AnotherProperty::Important Heading Information]]
And would output...
<h1 class="AnotherProperty">Important Heading Information</h1>
A user could then update the CSS appropriately and invoke style information as desired on all SMW content.
- I realize some HTM/CSS purists may cringe at the nomenclature, but it is succinct and the resulting HTML is clean.
Thanks!
Version: unspecified
Severity: enhancement