2006-08-12 01:46:17 +00:00
|
|
|
|
|
|
|
Configuration Ideas
|
|
|
|
|
|
|
|
Here are some theoretical configuration ideas that we could implement some
|
2006-08-14 03:05:28 +00:00
|
|
|
time. Note the naming convention: %Namespace.Directive
|
2006-08-12 01:46:17 +00:00
|
|
|
|
|
|
|
%Attr.IDPrefix - prefix all ids with this
|
2006-08-14 03:05:28 +00:00
|
|
|
|
2006-08-12 01:46:17 +00:00
|
|
|
%Attr.RewriteFragments - if there's %Attr.IDPrefix we may want to transparently
|
|
|
|
rewrite the URLs we parse too. However, we can only do it when it's a pure
|
|
|
|
anchor link, so it's not foolproof
|
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%Attr.ClassBlacklist,
|
|
|
|
%Attr.ClassWhitelist,
|
|
|
|
%Attr.ClassListMode - determines what classes are allowed. When
|
|
|
|
%Attr.ClassListMode is set to Blacklist, only allow those not in
|
|
|
|
%Attr.ClassBlacklist. When it's Whitelist, only allow those in
|
|
|
|
%Attr.ClassWhitelist.
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%Attr.LangAlphaOnly - designate whether or not to allow numerals in language
|
|
|
|
code subtags
|
|
|
|
* RFC 1766, the current standard referenced by XML, does not permit
|
|
|
|
numbers, but,
|
|
|
|
* RFC 3066, the superseding best practice standard since January 2001,
|
|
|
|
permits them.
|
|
|
|
We allow numbers by default, but you generally never see them
|
|
|
|
at all, which makes this a little more sane.
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%Attr.MaxWidth,
|
|
|
|
%Attr.MaxHeight - caps for width and height related checks.
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.Munge - will munge all URIs to a different URI, which should redirect
|
|
|
|
the user to the applicable page. A urlencoded version of the URI
|
|
|
|
will replace any instances of %s in the string. One possible
|
|
|
|
string is 'http://www.google.com/url?q=%s'. Useful for preventing
|
|
|
|
pagerank from being sent to other sites
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.AddRelNofollow - will add rel="nofollow" to all links, preventing the
|
|
|
|
spread of ill-gotten pagerank
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.Host - host of website, for external link checks
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.RelativeToAbsolute - transforms all relative URIs to absolute form
|
2006-08-12 01:46:17 +00:00
|
|
|
|
2006-08-14 03:05:28 +00:00
|
|
|
%URI.DisableExternal - disable external links
|