Branch: Tag:

2000-07-26

2000-07-26 14:52:30 by Johan Sundström <oyasumi@gmail.com>

Patched double quoting in <insert variables="full"/> and added a new
emit source for available font names:

<emit source="fonts">
&fonts.name;:<br />
<gtext font="&fonts.name;">Full speed ahead, Mr Cohen!</gtext><br />
</emit>

Rev: server/modules/tags/rxmltags.pike:1.145

7:   #define _rettext id->misc->defines[" _rettext"]   #define _ok id->misc->defines[" _ok"]    - constant cvs_version="$Id: rxmltags.pike,v 1.144 2000/07/26 14:27:02 kuntri Exp $"; + constant cvs_version="$Id: rxmltags.pike,v 1.145 2000/07/26 14:52:30 jhs Exp $";   constant thread_safe=1;   constant language = roxen->language;   
778:    string get_data(string var, mapping args) {    RXML.Context context=RXML.get_context();    if(var=="full") -  return Roxen.html_encode_string(Array.map(sort(context->list_var(args->scope)), +  return Array.map(sort(context->list_var(args->scope)),    lambda(string s) {    return sprintf("%s=%O", s, context->user_get_var(s, args->scope) ); -  } ) * "\n"); +  } ) * "\n";    return String.implode_nicely(sort(context->list_var(args->scope)));    }   }
1652:   }       + // ---------------- Emit registration stuff -------------- +  + class TagEmitFonts + { +  inherit RXML.Tag; +  constant name = "emit", plugin_name = "fonts"; +  array get_dataset(mapping arg, RequestID id) +  { +  return map(roxen->fonts->available_fonts(), +  lambda(string name) { return ([ "name" : name ]); }); +  } + } +  +    // ---------------- API registration stuff ---------------      string api_query_modified(RequestID id, string f, int|void by)