#include inherit "module"; inherit "caudiumlib"; constant module_type = MODULE_PARSER; constant module_name = "Sample Tag Module"; constant module_doc = #"This module was designed to enable you to see what a simple MODULE_PARSER looks like.

Usage:

<parser text=\"asdf\" />

"; constant module_unique = 1; constant thread_safe=1; int count = 0; void create() { /* defvar()'s */ defvar("phrase", "Default Text in config interface: ", "Phrase to output", TYPE_STRING, "This is the phrase to output in conjunction with the tag"); } string tag_parser(string t, mapping m, object id) { count++; return(QUERY(phrase) + " " + (string)m->text); } mapping query_tag_callers() { return ([ "parser":tag_parser, ]); } string status() { return("The sample tag was called
"+(string)count+"
time(s)"); }