[Radiant] New Date Tag
Adam Salter
adam at rokslide.com
Mon Apr 9 22:25:11 CDT 2007
date_type
<r:date date_type="updated_at" format="%B %d, %Y" />
or
<r:date date_type="now" />
On 10/04/2007, at 6:24 AM, Sean Cribbs wrote:
> select? I'm up for suggestions.
>
> Sean
>
> John W. Long wrote:
>> Sean Cribbs wrote:
>>
>>> How about this:
>>>
>>> tag 'date' do |tag|
>>> page = tag.locals.page
>>> format = (tag.attr['format'] || '%A, %B %d, %Y')
>>> which = tag.attr['which']
>>>
>>> ...
>>>
>>> If none of the core team has problems with this, I'll write some
>>> tests
>>> and patch it into mental.
>>>
>> I like this, but am not sure that "which" is the right name for this
>> attribute.
>>
>> --
>> John Long
>> http://wiseheartdesign.com
>> _______________________________________________
>> Radiant mailing list
>> Post: Radiant at lists.radiantcms.org
>> Search: http://radiantcms.org/mailing-list/search/
>> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
>>
>>
>
> _______________________________________________
> Radiant mailing list
> Post: Radiant at lists.radiantcms.org
> Search: http://radiantcms.org/mailing-list/search/
> Site: http://lists.radiantcms.org/mailman/listinfo/radiant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.radiantcms.org/pipermail/radiant/attachments/20070410/7ef8d511/attachment.html
More information about the Radiant
mailing list