src/source/dev_guide/custom-skin.rst
branchdoc-dc
changeset 148 337b4e28c11f
parent 142 5a82a9a2ea46
equal deleted inserted replaced
147:8359ec3086c5 148:337b4e28c11f
   209 
   209 
   210 
   210 
   211 .. _templatehowto:
   211 .. _templatehowto:
   212 
   212 
   213 How to define or change a template for a specific skin?
   213 How to define or change a template for a specific skin?
   214 =======================================================
   214 -------------------------------------------------------
   215 
   215 
   216 Override the default template for a renderer
   216 Override the default template for a renderer
   217 --------------------------------------------
   217 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   218 
   218 
   219 If you want to modify the template for a particular rendering mode, you can use the function :py:func:`override_template`
   219 If you want to modify the template for a particular rendering mode, you can use the function :py:func:`override_template`
   220 
   220 
   221 .. code-block:: python
   221 .. code-block:: python
   222 
   222 
   236 *(ex: layer=IMyWebsiteLayer)*
   236 *(ex: layer=IMyWebsiteLayer)*
   237 
   237 
   238 
   238 
   239 
   239 
   240 Redefine the default template for a renderer
   240 Redefine the default template for a renderer
   241 --------------------------------------------
   241 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   242 
   242 
   243 You must redefine an adapter to add new variables or static resources for your new template,
   243 You must redefine an adapter to add new variables or static resources for your new template,
   244 
   244 
   245 .. code-block:: python
   245 .. code-block:: python
   246 
   246