Projects tagged ‘django’ and ‘template’


[32 total ]

3 Users
 

Ruty is a template engine heavily inspired by the Django and Jinja Template Engine. It supports template inheritance, template inclusion and most of the tags supported by Jinja/Django.
Created over 3 years ago.

2 Users
 

Created about 1 year ago.

2 Users

A tree based django CMS applicationThis Django CMS enable you to create and administrate hierarchical pages in a simple and powerful way. DemoThis admin interface is no up to date, but could give ... [More] you an idea of what the software is doing: admin : http://pagesdemo.piquadrat.ch/admin/ frontend : http://pagesdemo.piquadrat.ch/pages/ See the Screenshots Key featuresAutomatic creation of localized placeholders (content area) in admin by adding placeholders tags into page templates. Django admin application integration. Multilingual support. Various Rich Text Editors are directly available. Page can be moved in the tree in a visual way. The tree can be expanded/collapsed. A cookie remember your preferences. Possibility to specify a different page URL for each language. The frontend example provide a basic "edit in place" feature. Directory-like page hierarchy (page can have the same name if they are not in the same directory) Every page can have multiple alias URLs. It's especially useful to migrate websites. Possibility to integrate 3th party apps Optional featuresHere is the list of features you can enable/disable: Revisions. Support for future publication start/end date. Inherited page permissions. Grant all rights to a user. Grant rights on a page only. Grant rights on a page hierarchy. Inherited templates. Page redirection to another page. Page tagging. User input sanitizer (to avoid XSS). Sites framework Dependencies & CompatibilityDjango 1.1, Django 1.0 with older release (1.0.5) Python 2.3. django-mptt django-tagging (if PAGE_TAGGING = True) html5lib (if PAGE_SANITIZE_USER_INPUT = True) django-tinymce (if PAGE_TINYMCE = True) jQuery. Compatible with MySQL, PostgreSQL, SQLite3, some issues are known with Oracle Help and documentationFAQ Install in existing project Check the rest of the Wiki Or post something into the Google Group Test itTo test this CMS checkout the code with subversion : svn checkout http://django-page-cms.googlecode.com/svn/trunk/ django-page-cms And then, run the development server : cd example/ manage.py syncdb manage.py runserverTo run the test suite: python setup.py testIf you have the special page permission system enabled and you are not admin, you must create a PagePermission object with all rights assigned to your user. After that you will be able to create pages. Handling imagesDjango page CMS can use these other projects: http://code.google.com/p/django-page-cms-image-placeholder/ http://code.google.com/p/django-filebrowser/ TranslationsThis application is available in english, german, french, spanish, danish and russian. Site made with Django Page CMShttp://www.osff.no/ Other Django CMSDjango CMS comparaison [Less]
Created about 1 year ago.

2 Users

A .Net template engine inspired by Django
Created 9 months ago.

1 Users

A set of utilities for creating robust pagination tools throughout a django application. Screencast: History2008-10-24: Version 1.0 Released
Created about 1 year ago.

1 Users

The Django Komodo Kit intends to various utilities and plugins to enhance productivity while implementing Django-based projects using Komodo Edit or Komodo IDE. The baseline for the feature set will ... [More] be the freely available Komodo Edit application. The ActiveState Komodo editor/IDE is built on Mozilla technology and it provides a lot of easy to use hooks for customizing your environment. With a focus on Django development, this project will provide and collect: snippets macros commands toolbars templates extensions Since a user of Komodo Edit will have individual preferences for which aspects of the application they are most comfortable with, features will be available via as many editor-specific hooks as makes sense. For example, a feature to create stub code for a new Model could appear as a toolbar button, a context menu item in various places, or a snippet. One auxiliary goal of the project is to implement as much as possible in Python. Some combination of interfacing with XPCOM or possibly experimenting with Django apps that output XUL will be investigated. Learn more about DKK Try it out [Less]
Created about 1 year ago.

0 Users

Make facebook like modal windows without messing with your existing views, just add a middleware class and a ContextProcessor and start enjoying modal windows~
Created 4 months ago.

0 Users

Create a widgets.py in your application. There you will create a class that subclasses Widget. example: class Login(Widget): template = "account/login.html" def get_context(): ... [More] return {"login_form":LoginForm()} the widget has access to the request and the user. In the template you can do the following now: {% load widget %} {% widget Login %}This will render the template with the context from the get_context function. Widgets will be auto discovered. Code is in alpha stage and not even tested in a production. commits follow... patches are welcome [Less]
Created 12 months ago.

0 Users

Cheetah template engine for DjangoUsage Use the render_cheetah_response shortcut just as you would use render_to_response Use the CheetahTemplate class to render contexts in your views from text or ... [More] file News - Now released a version which is the stand alone module django_cheetahtemplates and contains the application of the example below. See the source svn repository for the most up to date code. ExamplePut this in your views from django_cheetahtemplates import render_cheetah_response,CheetahTemplate from django.template import Context from django.http import HttpResponse def hello(request): # Use shortcut return render_cheetah_response('hello.tmpl', {'myvar':'hello world','range':range} ) def hello2(request): # Create and render context context = Context({'myvar':'hello'}) context['range'] = range template = CheetahTemplate(filename='hello.tmpl') return HttpResponse(template.render(context))Then create hello.tmpl somewhere in your TEMPLATE_DIRS $myvar #for i in $range(10) $i#slurp #end forWhen you go to the url linked to either hello or hello2 you will see this hello world 0123456789Capabilities: Django context/template rendering compatibility with CheetahTemplate class. Shortcut replacement for render_to_response => render_cheetah_response TODO: Cheetah template path search (always defaults to your project directory when trying to include files) Fix: find your template from there with relative links? Transfer over filters to cheetah format Create URL shortcuts for generic cheetah template views (like 'direct_to_template' in urls.py) [Less]
Created about 1 year ago.

0 Users

Kul-substitute is a plugin for jQuery that replaces any occurrence of a certain (delimited) text into another, getting the new value from the (dictionary) object given as argument. e.g.: >>> var ... [More] data = {animal: "parrot", status: "deceased"} >>> $.substitute("That ${ animal } is definitely ${ status }", data) "That parrot is definitely deceased"Missing values are replaced by empty strings, but you have two ways to specify a different default: Globally (for every subsequent use of $.substitute()): >>> $.substitute.missing = "unknowingly" "unknowingly" >>> $.substitute("That ${ animal } is ${ adverb } ${ status }", data) "That parrot is unknowingly deceased"Locally: >>> $.substitute("That ${ animal } is ${ adverb } ${ status }", data, {missing: 'definitely'}) "That parrot is definitely deceased"As you see, you can pass a settings object as a third argument on each replacement. For instance, you may change the regular expression that gets the "tag" name, in case you need to change the syntax (the default syntax is compatible with Python's string.Template). An alternative regular expression matching Django's syntax for variables is available: >>> $.substitute.regex = $.substitute.re_django >>> $.substitute("That {{ animal }} is definitely {{ status }}", data) "That parrot is definitely deceased"You can have spaces inside the curly braces (e.g.: ${ change this sentence }), which makes it a good option for javascript internationalization. There are more ways to tweak this plugin to suit your needs. Please refer to the tests in the source to see all the options. I have been using this plugin for a while but now I decided to make it publicly available. It's tiny yet powerful and fast. [Less]
Created about 1 month ago.