Skip to content

Global_Variables

Nat! edited this page Feb 4, 2023 · 1 revision

These variables are used and partly setup by the printer

Formatting Variables

Name Description
MulleScionDateFormatter A NSDateFormatter object to use for number formatting
MulleScionNumberFormatter A NSNumberFormatter object to use for number formatting
MulleScionDateFormat The format string to use for the NSDateFormatter formatting
MulleScionNumberFormat The format string to use for the NSNumberFormatter formatting
MulleScionLocale The NSLocale to use for NSDate and NSNumber
MulleScionNilDescription What to print in place of a nil value
MulleScionStringLength If defined: the maximum string length to output for any string value in expressions.
MulleScionStringEllipsis If string gets truncated by MulleScionStringLength what to print at the end to indicate truncation

Internal Variables

Name Description
__OUTPUT__ The object output gets rendered to
__FILE__ The current template file
__LINE__ The current line in the template file
__FUNCTION__ The currently executing function
__FILTER__ The currently installed filter chain
__FILTER_STACK__ The previous filters chain
__FILTER_MODE__ The currently installed filter mode
__FILTER_MODE_STACK__ The previous filters chain modes
__SELF_REPLACEMENT__ The object that the identifier 'self' gets replaced with
__TRACE__ Set it to YES to turn on tracing, to NO to turn tracing off

Predefined Variables

A small selection of Foundation constants is predefined for convenience.

  • NSNotFound
  • NSOrderedAscending
  • NSOrderedDescending
  • NSOrderedSame
  • NSASCIIStringEncoding
  • NSISOLatin1StringEncoding
  • NSMacOSRomanStringEncoding
  • NSUTF32StringEncoding
  • NSUTF8StringEncoding
  • NSUnicodeStringEncoding

Variables available through mulle-scion

Name Description
MulleScionRootTemplate available when printing with mulle-scion, it's the path of the template from the command line
MulleScionPropertyListName available when printing with mulle-scion, it's the path of the property list from the command line
__ARGV__ command line arguments passed
Clone this wiki locally