Add the items to the instance of the environment if they do not exist yet. This is used by :ref:`extensions ` to register callbacks and configuration values without breaking inheritance.
(self, **attributes)
| 345 | self.extensions.update(load_extensions(self, [extension])) |
| 346 | |
| 347 | def extend(self, **attributes): |
| 348 | """Add the items to the instance of the environment if they do not exist |
| 349 | yet. This is used by :ref:`extensions <writing-extensions>` to register |
| 350 | callbacks and configuration values without breaking inheritance. |
| 351 | """ |
| 352 | for key, value in iteritems(attributes): |
| 353 | if not hasattr(self, key): |
| 354 | setattr(self, key, value) |
| 355 | |
| 356 | def overlay(self, block_start_string=missing, block_end_string=missing, |
| 357 | variable_start_string=missing, variable_end_string=missing, |
no outgoing calls