Branch: Tag:

2015-10-07

2015-10-07 06:39:40 by Martin Karlgren <marty@roxen.com>

cimg: Add defvar for default arguments.

244:    "This is not necessary, but might seem "    "nicer, especially to people who try "    "to mirror your site.")); +  defvar ("default_args", +  Variable.Mapping (([]), 0, +  "Default Arguments", +  "Arguments to add implicitly to cimg/cimg-url/" +  "emit#cimg calls. Explicit arguments will take " +  "precedence over any arguments specified here."));   }      void start()
432:      mapping check_args( mapping args )   { +  args = query ("default_args") + args;    if( !args->format )    args->format = "png";    if( !(args->src || args->data) )