{ "info": { "author": "George Ma", "author_email": "george.ma1982@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "=================\ndjango-smartmenus\n=================\n\nA Django app that provides template tags to easily incorporate smartmenus (http://www.smartmenus.org/).\n\nInstallation\n============\n\nTo get started using ``django-smartmenus``:\n\n- install it with ``pip``::\n\n $ pip install django-smartmenus\n\n- add the app to ``INSTALLED_APPS``. If you are using Django CMS, make sure it's before ``menus``::\n\n INSTALLED_APPS = (\n ...\n 'django_smartmenus',\n 'menus', #Only if you are using Django CMS\n ...\n )\n\nUsage\n=====\n\nThe best way to see how it works is exploring the example project. But for the impatient, all you need to do is:\n\n- load smartmenus tags in the templates::\n\n\t{% load smartmenus_tags %}\n\n\n- Call smartmenus template tags where css and js files should show::\n\n\t{% smartmenus_css theme %}\n\t\n\t{% smartmenus_js %}\n\n ``theme`` is a string based parameter. Out of box, ``theme`` can be one of 'sm-blue', 'sm-clean', 'sm-mint' and 'sm-simple'. If you create a custom theme of your own, please put the theme file under static folder following smartmenus theme folder structure convention, ie. smartmenus/css/``theme``/``theme``.css.\n\n\n- Render menu html in the templates. Please refer to smartmenus tutorial to see what the html should be.\n\n\nThis app also supports Django CMS:\n\n- load smartmenus and menu tags in the templates::\n\n\t{% load menu_tags smartmenus_tags %}\n\n\n- Call Django CMS specific template tags anywhere in the templates::\n\n\t{% addtoblock \"js\" %}{% endaddtoblock %}\n\t{% smartmenu_bootstrap_cms theme %}\n\n ``theme``'s usage is the same as above.\n\n\n- Render Django CMS menu::\n\n\t