Ash Berlin said the following on 4/4/2008 8:37 AM:
Moose is in there for InstancePerContext, so that you can do:

$c->model('File')->cd('foo/bar');
$c->model('File'')->slurp('file.txt');

to access the contents of $configured_root_dir/foo/bar/file.txt.

I could have written the ACCEPT_CONTEXT sub myself, but DRY and all that.

And I'd like to say a nice public "Thank You!" for writing C::M::File. It made an app I'm writing much easier. :-)

--[Lance]

--
 GPG Fingerprint: 409B A409 A38D 92BF 15D9 6EEE 9A82 F2AC 69AC 07B9
 CACert.org Assurer

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to