|
DynaPage::Sourcer - DynPage text sources parser |
DynaPage::Sourcer - DynPage text sources parser
#------------------------------------------------------ # (C) Daniel Peder & Infoset s.r.o., all rights reserved # http://www.infoset.com, Daniel.Peder@infoset.com #------------------------------------------------------
$Revision: 1.4 $ $Date: 2005/01/13 21:30:49 $
There are two main format types of text sources:
- single line
value-name =- shrink line-inner tabs/spaces, drop line-outer whitespaces value-name =~ line whitespaces are preserved
- multi line
# UnIndent
value-name ==
shrink block-inner tabs/spaces
drop block-outer newlines/linefeeds
drop line-aouter spaces/tabs
== value-name
# SingleLiner
value-name ==-
shrink block-inner whitespaces
drop block-outer whitespaces
-== value-name
# Preserver
value-name ==~
drop block up-to/behind first newline[?linefeed]
preserve all whitespaces
~== value-name
Returns number of values.
Without arguments returns $self->Content().
$indexref must be either numeric or arrayref, if specified.
numeric gets single value at specified array index.
arrayref gets joined values at specified array indexes.
Negative $indexref works same way as with perl arrays, eg index from the end of array.
Unless $indexref is specified, all joined values for the $name are returned.
For separating joined values, the $joinstring, $self->{'~JOINSTRING'} or '' will be used is this order.
|
DynaPage::Sourcer - DynPage text sources parser |