On Wed, 11 Jun 2008, Vincent Veselosky wrote: > I realize that this is somewhat esoteric, but did the API for the compiler > class change recently? > > I have a custom code metric script that subclasses HTML::Mason::Compiler to > count lines of Perl in my Mason components. I haven't used it in a while, > but when I dusted it off, it threw an error saying "Mandatory parameter > 'comp_path' missing in call to HTML::Mason::Compiler::compile". Sure enough, > when I pass "comp_path" (with the same value as "comp_source") it seems to > work. > > The docs at [http://masonhq.com/docs/manual/Compiler.html#methods] don't > mention "comp_path", and the compile method does not use it directly. > > This is in HTML::Mason 1.39. I've got my toys working again, but there's > either a code bug or a documentation bug here. Anyone know which?
The last time HTML::Mason::Compiler was changed was in June of 2007, so there can't have been _any_ recent change. However, the docs for that method were rather wrong. I'll update them for the next release. -dave /*========================== VegGuide.Org Your guide to all that's veg ==========================*/ ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users