On Sep 13, 2012, at 7:40 AM, Vegard Vesterheim wrote: > On Thu, 13 Sep 2012 10:08:51 -0400 Jonathan Swartz <swa...@pobox.com> wrote: > >> I never got MMM mode to work reliably even for Mason 1. :) >> >> But it would be awesome if it did work. Anyone using it? > > Well, I am ;-). The most useful part is automatic indentation. I guess that > your recently announced masontidy could help in that regard. > > Further along the awesomeness scale: For pure perl scripts, I find > flymake very useful. Imagine having on-the-fly syntax checking while > writing Mason2 code! I guess this would have to activate the mason > compiler behind the scenes somehow. Is this possible?
You can call $interp->_compile($source_file, $path) where $source_file is the component file and $path is the component path. The latter doesn't really matter for validation purposes. This wlil return the generated class that would normally go into an object file, or throw a fatal error if there was a syntax problem. There ought to be a public API method for this, but I'm not sure the existing _compile is the right level to expose. Give it a try and let me know. Jon ------------------------------------------------------------------------------ Got visibility? Most devs has no idea what their production app looks like. Find out how fast your code is with AppDynamics Lite. http://ad.doubleclick.net/clk;262219671;13503038;y? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users