QuickTags

QuickTags are used in QuarterMaster to aid construction of otherwise complex tags.  It makes RSP more concise and dynamic.  Note that QuickTags can be added.

Usage

QuickTags are contained in the following construct:

<%! tag me up! %>

Between the tag delimiters are REBOL values.  Values can be placed in any order following the tag name.  Dynamic values can be used with parenthesis:

<%! a news/(story/id) (story/title) %>

Available Tags

a <a … >

Creates an anchor (link).

a %/news/ #"1"

<a href="/news" accesskey="1">

Arguments:

href [file! | url! path!]
Link Destination.  Required.
id [opt issue!]
Tag id.
class [any refinement!]
Tag class(es).
title [opt string!]
Tag title.
accesskey [opt char!]
Accesskey.
rel [any lit-word!]
Relations.  Useful for Microformat support.

img <img … />

Produces an Image tag:

img images/photo.jpg 400x300 "Beach Scene" "At the Beach!" /photo

<img src="/images/photo.jpg" width="400" height="300" alt="Beach Scene" title="At the Beach!" class="photo" />
src [file! | url! | path!]
image location.  Required.
alt [string!]
Alternate text.  Required.
size [opt pair!]
Height and Width.  A negative value for height and width will skip that attribute.
id [opt issue!]
Tag id.
class [any refinement!]
Tag class(es).
title [opt string!]
Tag title.

form <form … >

Generates a Form tag:

form upload photos/add #add-form

<form method="post" action="/photos/add" enctype="multipart/form-data" id="add-form">
method [opt word! is within [get post upload]]
The form method.  Upload will allow you to add file controls.
action [file! | url! | path!]
Form target.  Required.
id [opt issue!]
Tag id.
class [any refinement!]
Tag class(es).