dear M experts----beginner's question.
I like the structure and simplicity of M Lite even more than I like that of M (at least for now). Of course, Lite wouldn't work with more than a few routes. what I would like is to have my code be together in one file with its template, and store it in the unix file structure that gives it its name. (this is not to argue that this is a better way to do this; just a personal preference. it makes it easy to look at the URL and find all associated source code.)
so, for example, I may want to store in
/student/workonme:
# Route is determined by the file name now, so
# get or post '/student/workonme' =>
$c->render(template => 'magic', two => 24);
The magic numbers are <%= $one %> and <%= $two %>.
I don't know how to distinguish between gets and puts in this sort of organization (yet). now, when a URL request arrives, M would just look it up in the unix file structure.
if this functionality exists, could someone please point me to it? pointers appreciated.
regards,
/iaw