Template::Direct::Maths - Handle a mathimatical query


Template-Direct documentation  | view source Contained in the Template-Direct distribution.

Index


NAME

Top

Template::Direct::Maths - Handle a mathimatical query

DESCRIPTION

Top

  Provide support for doing simple calculations (SIMPLE ONLY!)

METHODS

Top

$class->new( $index, $line )

  Create a new instance object.

$maths->tagName( )

  Returns 'maths'

$maths->singleTag( )

  Returns true

$maths->compile( )

  Modifies a template with the data calculated.

$maths->parseStatement( $s, $data )

  Return an array structure of values to calculate.

$maths->calculate( $statement )

  Return a result based on calulating the statement.

AUTHOR

Top

  Martin Owens - Copyright 2008, AGPL


Template-Direct documentation  | view source Contained in the Template-Direct distribution.