Data::Context::Instance - The in memory instance of a data context config file
This documentation refers to Data::Context::Instance version 0.0.3.
use Data::Context::Instance; # create a new object my $dci = Data::Context::Instance->new( path => 'dir/file', file => Path::Class::file('path/to/dir/file.dc.js'), type => 'js', dc => $dc, ); # Initialise the object (done by get normally) $dci->init; # get the data (with the context of $vars) my $data = $dci->get_data($vars);
Initialises the instance ie it reads the config file and merges in the parent if found
Returns the data from the config file processed with the context of $vars
This does the magic of processing the data, and in the future handling of the data event loop.
There are no known bugs in this module.
Please report problems to Ivan Wills (firstname.lastname@example.org).
Patches are welcome.
Ivan Wills - (email@example.com)
Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077). All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.