Class TddHashLocalDataBuilder

java.lang.Object
fmpp.localdatabuilders.CachingLocalDataBuilder
fmpp.localdatabuilders.TddHashLocalDataBuilder
All Implemented Interfaces:
LocalDataBuilder, ProgressListener

public class TddHashLocalDataBuilder extends CachingLocalDataBuilder
Builds data from a TDD hash, interpreting function calls as data loader invocations. The hash is evaluated when LocalDataBuilder.build(fmpp.Engine, fmpp.TemplateEnvironment) is invoked first. Then the result is stored until the end of the processing session, to be reused for all subsequent LocalDataBuilder.build(fmpp.Engine, fmpp.TemplateEnvironment) invokations.

This local data builder is what localData setting uses, when the last parameter to the case function is a hash, e.g.:
localData: [case(sub/, {bgColor:green, doc:xml(data/foo.xml)})].