2 <:img:>

<:img path [queryargs] [noescape] [extra_args]:>

Creates an appropriate HTML <IMG> tag. Arguments similar to <:url:> (see section 5.1, page ).

The queryargs argument, if present, allows you to pass a dictionary of arguments as a querystring to the image document, as is useful for dynamically generated images (thumbnails, graphs, etc.). Defaults to an empty dictionary.

The noescape argument, if present, tells SkunkWeb not to escape URL-unsafe characters in the path argument, such as spaces or extended characters. By default, SkunkWeb will escape all non-safe characters except for the / character, which it leaves intact. It will escape the : character in your path argument, however.

The extra_args parameter is not actually a real argument name, but is a pass through to let you pass through arguments to the <img> tag. Keyword arguments only.

Examples:

<:img path=this.gif border=1:>
# produces <IMG SRC="this.gif" border="1">

The equivalent Python component code would be:

import templating.UrlBuilder
print templating.UrlBuilder.image(path, queryargs,
     extra_args_as_dict, noescape)