MVC::Neaf::View::JS - JSON-base view for Not Even A Framework.
return { # your data ... -view => 'JS', -jsonp => 'my.jsonp.callback', # this is optional }
Will result in your application returning raw data in JSON/JSONP format instead or rendering a template.
%options may include:
preserve_dash - don't strip dashed options. Useful for debugging.
NOTE No input checks are made whatsoever, but this MAY change in the future.
Returns a scalar with JSON-encoded data.
To install MVC::Neaf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MVC::Neaf
CPAN shell
perl -MCPAN -e shell install MVC::Neaf
For more information on module installation, please visit the detailed CPAN module installation guide.