Example #1
0
    def default_view(self):
        """ Default view for :class:`praxisloester.resources.CustomContent`

        :result: Dictionary needed to render the template.
        :rtype: dict
        """

        return {"foo": _(u"bar")}
Example #2
0
    def alternative_view(self):
        """ Alternative view for :class:`praxisloester.resources.CustomContent`.
        This view requires the JS / CSS resources defined in
        :mod:`praxisloester.fanstatic`.

        :result: Dictionary needed to render the template.
        :rtype: dict
        """

        css_and_js.need()

        return {"foo": _(u"bar")}