Skip to content

Instantly share code, notes, and snippets.

@ojii
Created March 28, 2011 14:11
Show Gist options
  • Save ojii/890529 to your computer and use it in GitHub Desktop.
Save ojii/890529 to your computer and use it in GitHub Desktop.
__init__.py
# nothing here
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from cms.models import CMSPlugin
class VerySimplePlugin(CMSPluginBase):
model = CMSPlugin
name = "A very simple plugin"
render_template = "very_simple_plugin/render_template.html"
def render(self, context, instance, placeholder):
return context
plugin_pool.register_plugin(VerySimplePlugin)
# nothing here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment