@classmethod
def add_predefine(cls, template):
    """Add a template that should be run prior to running any other templates.
        This is useful for predefining types, etc.

        :param basestring template: The template text (unicode is also fine here)
        """
    cls._predefines.append(template)
