Changes between Initial Version and Version 1 of InsertElementMacro


Ignore:
Timestamp:
Jul 16, 2007, 5:26:56 PM (17 years ago)
Author:
Marc E.
Comment:

New hack InsertElementMacro, created by sanmarcos

Legend:

Unmodified
Added
Removed
Modified
  • InsertElementMacro

    v1 v1  
     1= InsertElementMacro =
     2
     3== Description ==
     4
     5Allows you to insert HTML elements with properties without having to use a preprocessor.
     6
     7== Bugs/Feature Requests ==
     8
     9Existing bugs and feature requests for InsertElementMacro are
     10[report:9?COMPONENT=InsertElementMacro here].
     11
     12If you have any issues, create a
     13[http://trac-hacks.org/newticket?component=InsertElementMacro&owner=sanmarcos new ticket].
     14
     15== Download ==
     16
     17Download the zipped source from [download:insertelementmacro here].
     18
     19== Source ==
     20
     21You can check out InsertElementMacro from [http://trac-hacks.org/svn/insertelementmacro here] using Subversion, or [source:insertelementmacro browse the source] with Trac.
     22
     23== Example ==
     24
     25Usage:
     26{{{
     27  [[InsertElement(element, property, value, content)]]
     28}}}
     29Where:
     30
     31    * element Name of an HTML element like div or p
     32    * property Name of the HTML property such as class or id
     33    * value The value of the property
     34    * content The quoted string for the content of the element
     35
     36Examples:
     37{{{
     38  [[InsertElement(div, class, quote, "This is a very nice quote")]]
     39  [[InsertElement(p, id, unique, "This is a unique paragraph, commas in the last argument don't interfere")]]
     40  [[InsertElement(a, id, uniquea, "You can represent actual quotes by using "entities"")]]
     41  [[InsertElement(pre, id, uniqueb, 'Or you can change the type of "outer quote"')]]
     42}}}
     43Result:
     44{{{
     45    <div class="quote">This is a very nice quote</div>
     46    <p id="unique">This is a unique paragraph, commas in the last argument don't interfere</p>
     47    <a id="uniquea>You can represent actual quotes by using "entities"</a>
     48    <pre id="uniqueb">Or you can change the type of "outer quote"</pre>
     49}}}
     50
     51== Recent Changes ==
     52
     53[[ChangeLog(insertelementmacro, 3)]]
     54
     55== Author/Contributors ==
     56
     57'''Author:''' [wiki:sanmarcos] [[BR]]
     58'''Contributors:'''