• Home
  • Most Popular
  • Submit
  • About Us
  • Contact Us

Softpile

Free Downloads

Categories
  • Home
  • Most Popular
  • Communications
  • Desktop
  • Games & Entertainment
  • Graphic Apps
  • Network & Internet
  • Security & Privacy
  • System Utilities
Alternative to itextsharp 2022.11.10347
IronPDF offers an itextsharp alternative for HTML to PDF conversion with C# code examples, documentation, and ...
VShell Server for Linux and Mac 4.8
VShell is a versatile and secure file transfer server that supports multiple protocols and is compatible ...
PDF Studio PDF Editor for Linux 2022
PDF Studio is a cost-effective PDF editor that delivers full compatibility with the PDF Standard. It's ...
VQ Probe for Linux 1.5
VQ Probe is a comprehensive software tool that enables objective and subjective video quality analysis. The ...
Resilient Server 2.3
This Debian GNU/Linux (Buster) based software has a customized partitioning scheme that enhances robustness against filesystem ...
Valentina Studio for Linux 9.6
Valentina Studio is a cross-platform GUI manager for Mac, Windows, and Linux. It allows users to ...
VPN Lifeguard for Linux 1.0.58
The software monitors VPN connection and automatically terminates apps during connection loss, re-establishes the connection and ...
G_Viewer 0.84
G_Viewer is a Linux software that serves as both a file system and photo/image viewer. It ...
Checksome File Hash Tool for Linux 1.1
This software allows for the generation and verification of file hashes. It is a quick and ...
KeyWrangler Password Manager for Linux 1.2
A password management software that is secure, offline and extensible. It offers military-grade encryption to protect ...
Home Linux django-snippets Download

django-snippets

October 28, 2009
This software offers a Django templatetag that functions similarly to {% include %}, with the difference being that the template content is obtained from a database.
Version 0.1.2
License BSD License
Platform Linux
Supported Languages English
Homepage code.google.com
Developed by Guilherme Gondim
Django-snippets is a powerful Django application that provides the much-needed templatetag called "include_snippet" for Django projects. It allows users to create instances of the snippets.models.Snippet model which can later be used with the snippets templatetag-library.

To use this application, simply load the snippets templatetag-library by using "{% load snippets ... %}" in your project template. Once done, provide the templatetag with the snippet's name enclosed in double quotes, like this "{% include_snippet "comment_list" %}".

Moreover, it is possible to use a variable containing the snippet's name. Using a template variable as an argument in the include_snippet tag, without the quotes, dynamically renders the Snippet. The Snippet model supports Django template syntax, meaning you can use other tags like "{% for %}", "{% if %}" and many more.

This templatetag also features an optional argument for the number of seconds for which a Snippet should be cached, making caching simpler and more efficient. For instance, { % include_snippet "comment_list" 3600 % } will cache the "comment_list" Snippet for 1 hour.

One nice feature of the "include_snippet" tag is a fallback for snippets that don't exist in the database. If a particular Snippet does not exist in the database, the tag's result will be the value specified in the SNIPPET_STRING_IF_INVALID setting, which defaults to an empty string.

Django-snippets is a fantastic Django plugin that improves productivity by allowing seamless integration and caching of templates with minimal coding. It's an essential library for developers looking to improve their Django projects' performance and functionality.
What's New

Version 0.1.2: N/A

Free Download 3K
348
  • Share on:

Most Popular

  1. Quicksilver Forums 1.4.2
    154
  2. Dvgrab 3.4
    102
  3. DynVPN 1.0
    89
  4. CherryTV 0.1
    81
  5. SlideMap 1.2.2
    80
  6. porm r2
    73
  7. Clewarecontrol 0.8
    72
  8. Java Games 1.0
    72
  9. Swiftfox 3.0b5pre-2
    71
  10. fuseftp 0.8
    71

Related Downloads

Irving
Irving is a software tool that aims to provide a fast and ...
Nodoka Geometric
This is a GNOME theme designed specifically for Global Menu, allowing easy ...
KDE Simple Programming Tutorial
The KDE Simple Programming Tutorial is a guide to create a KDE ...
django-auto-urls
This Django application attempts to load a template based on the file ...
Sinek
Sinek is a video/audio player with GTK+ interface that can play all ...
Grace Donation Manager
This software helps nonprofits and charities keep track of donations received. It ...
Xmlbeansxx
Xmlbeansxx generates C++ classes from XML Schema, providing memory safe, fast, and ...
Script Wizard
Script Wizard is a handy software tool that assists in the hassle-free ...
iStatd
The iStat iPhone application's server, designed to support the app's functionalities and ...
httperf
Httperf software measures web server performance with its essential tool.
Copyright © 1999-2025 Softpile Free Downloads
  • Most Popular
  • Submit
  • About Us
  • Contact Us
  • Privacy Policy
  • Disclaimer
  • Terms of Use

Can we use your data to tailor ads for you?

Our partners will collect data and use cookies for ad personalization and measurement.

By choosing "I agree", closing this pop-up or clicking on any element on the page, you agree to the use of cookies to help us provide you with a better user experience.

Learn how Softpile and our partners collect and use data.

You can change your choice at any time in our privacy center.

Cookie Settings

Our website stores four types of cookies. At any time you can choose which cookies you accept and which you refuse. You can read more about what cookies are and what types of cookies we store in our Cookie Policy.

are necessary for technical reasons. Without them, this website may not function properly.

are necessary for specific functionality on the website. Without them, some features may be disabled.

allow us to analyse website use and to improve the visitor's experience.

allow us to personalise your experience and to send you relevant content and offers, on this website and other websites.