djangosnippets.org: Latest snippets tagged with 'textile'https://djangosnippets.org/tags/textile/2009-02-20T15:03:05.284923-06:00MarkupField
2009-02-20T15:03:05.284923-06:00jpthttps://djangosnippets.org/snippets/1332/<p>This is a field that allows multiple markup types but also stores the pre-rendered result in the database which offers an advantage over calling one of the render methods each time. Example usage looks like:</p>
<pre><code>class BlogPost(models.Model):
...
post = MarkupField()
</code></pre>
<p>the various extra fields can then be accessed as …</p>
Freely redistributableTextile Widget
2008-11-07T09:31:18.614533-06:00howiworkdailyhttps://djangosnippets.org/snippets/1171/<p>A Textarea widget which appends basic Textile formating instructions in the same way Basecamp's Writboard product displays some basic helper markup alongside the edit area.</p>
Freely redistributableMarkupTextField
2008-11-06T09:10:37.060372-06:00myleshttps://djangosnippets.org/snippets/1169/<p>I updated <a href="http://www.djangosnippets.org/snippets/882/">MarkdownTextField</a> to have some choices in markup. It currently support for Markdown, Textile, Plain Text, and Plain HTML. It will add <code>%s_html</code> for the complied HTML and <code>%s_markup_choices</code> for a drop down of markup choices.</p>
<p>Usage:</p>
<pre><code>class MyModel(models.Model):
description = MarkupTextField()
</code></pre>
Freely redistributableMarkup Selection in Admin
2007-08-15T19:54:40.267943-05:00jonathanhttps://djangosnippets.org/snippets/368/<p>This method lets you define your markup language and then processes your entries and puts the HTML output in another field on your database.</p>
<p>I came from a content management system that worked like this and to me it makes sense. Your system doesn't have to process your entry every …</p>
Freely redistributableGeneric markup converter
2007-03-13T11:35:37.800116-05:00ubernostrumhttps://djangosnippets.org/snippets/104/<p>I'm a big fan of Markdown, and often set up models to automatically apply it to certain fields before saving. But that's not really flexible, because if I then distribute the code someone else might want to use reStructuredText or Textile or whatever, and then they have to hack my …</p>
Freely redistributable