The easy Weblog and Wiki Software
[ start | index | login ]
start > ThoMo

ThoMo

Created by ThoMo. Last edited by ThoMo, 2 years and 79 days ago. Viewed 3,619 times. #77
[diff] [history] [edit] [rdf]

ThoMo´s addons

!!! the addons are tested against the snipsnap-uttoxeter version 1.0b2 !!!

To use the addons just copy >>thomos-addons.jar to snipsnap application dir/*/webapp/WEB-INF/lib/

Now the addons are hosted at SnipForge, see >>http://snipforge.org/svn/thomo/addons/trunk/ .

addontypedescription
namespacesmacroDisplays the current defined/used namespaces. You can determine the depth of the namespaces to show.
snip-limittreemacroDisplays a limited snip tree. Works like the macro snip-tree but you can determine the maximum depth to show.
NEW
kiviat
graph rendererA graph renderer to produce Kiviat diagramms. Example see below.
list-of-codefiltermacroDisplays a list of all available code filter.
NEW
list-of-listformatter
macroDisplays a list of all available list formatter.
NEW
sorted
list formatterCan be used in label search to dispay a sorted result list.
xslmacroUse an attached XSL to transform an XML and display the result. Valid data sources are attached files and URLs. Example see below.
NEW: Add support of XSL transformation parameter

Macro usage

xsl macro

The macro use XSL file to transform the XML file. The output is written into the snip.

Example files:
  • macro.xml
<?xml version="1.0" encoding="UTF-8"?>
<root>
<macro name="namespaces"/>
<macro name="snip-limittree"/>
</root>
  • macro2snip.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="root">
    <xsl:text>1 ThoMos addons
</xsl:text>
    <xsl:apply-templates/>
  </xsl:template>
  <xsl:template match="macro">
    <xsl:text>
- <xsl:text>
    <xsl:value-of select="@name"/>
  </xsl:template>
</xsl:stylesheet>

If both files are attached to the snip the xsl macro

{xsl:macro.xml|macro2snip.xsl}
will generate:

1 ThoMos addons
- namespaces
- snip-limittree

Kiviat graph renderer

The Kiviat renderer generates Kiviat diagram pictures. The renderer use the graph macro. For each branch just write a line like

[branch_name,value]
in the graph macro. The given value must be 0 <= value <= 100.

You can control the output with the attributes (all are optional)

  • [@height,300] - defines the image height
  • [@gridColor,R,G,B] - set the color of the grid (0 <= R,G,B <= 255)
  • [@areaColor,R,G,B] - set the color of the polygon (0 <= R,G,B <= 255)
  • [@hideText] - hides the descriptions
{graph:kiviat}
[@height,300]
[@gridColor,0,0,0]
[@areaColor,0,0,255]
[Comments,60]
[Methods,40]
[Attributs,90]
[Complexity,20]
[Statements,95]
{graph}

will result in kiviat

Patches

I have setup my own SnipSnap branch based on SnipSnap-uttoxeter. It contains all my patches.

Latest (full list see >>here):

  • 2006-02-27
  • import latest uttoxeter changes
  • 2005-10-25
  • BUG: in xmlrpc-2.0 (Basic Authorization not work)
  • 2005-06
  • BUG: AtoZListener lists to much items
  • VerticalListener: list blog snips with their title
  • add transient labels, see >>http://bugs.snipsnap.org/browse/SNIPSNAP-432
  • PostDaemon - modified to support mail to different blogs
    New syntax of mail subject: <blogpasswd>[@<blog>] <title>
    • <blogpasswd> - password to restrict mail-to-blog
    • <blog> - blog to post to (optional, if missed the message is posted to the start blog)
    • <title> - blog title
    • Example: myBlogPass@post/to/this/blog Patch PostDaemon
Download:

helper scripts

  • copy a lib (like thomos-addons.jar) to all snipsnap applications
#! /bin/sh
APPL_DIR=/your/path/to/snipsnap/applications_dir

for i in `ls -A applications`; do cp $1 $APPL_DIR/applications/$i/webapp/WEB-INF/lib done

29 comments (by michaelk, phobia, GaryPaulson, kool, ThoMo, matt, brent, csg, ahfai, scrooks, Victor Volle, funzel) | post comment

What is SnipSnap?
SnipSnap is a free and easy to install weblog and wiki tool written in Java.

SnipSnap download
Current version: 1.0b3-uttoxeter
Try our >>Web Start Demo!

Resources

5567 Users and 13710 Snips. Installed 5 years and 311 days ago

Logged in Users: (2)
… and 17 Guests.

snipsnap-changed for older changes.

< May 2008 >
SunMonTueWedThuFriSat
123
45678910
11121314151617
18192021222324
25262728293031

snipsnap
Listed on BlogShares
XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

pico-powered

Powered by SnipSnap 1.0b3-uttoxeter
YourKit >>Java Profiler

Fraunhofer FIRST

snipsnap.org | Copyright 2000-2006 Fraunhofer FIRST