Changeset 1068 in main


Ignore:
Timestamp:
04/27/12 14:18:40 (7 years ago)
Author:
pcosquer
Message:

docs: add module plmapp_tags

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/templatetags/plmapp_tags.py

    r1043 r1068  
    1212def trunc(string, number, dots='...'): 
    1313    """  
    14     truncate the {string} to {number} characters 
    15     print {dots} on the end if truncated 
     14    Truncate the *string* to *number* characters 
     15    and print *dots* on the end if truncated 
    1616 
    17     usage: {{ "some text to be truncated"|trunc:6 }} 
    18     results: some te... 
     17    :usage: ``"isome text to be truncated"|trunc:6`` 
     18    :results: some te... 
    1919    """ 
    2020    if not isinstance(string, basestring):  
Note: See TracChangeset for help on using the changeset viewer.