4 ms·
Those are examples, with example page handlers. Right - and examples are meant to illustrate how to best use a library.
by mootothemax 14y ago
Those are examples, with example page handlers.
Right - and examples are meant to illustrate how to best use a library.
- andypants 14y agoAnd they do show the best way to use the router. Rendering content is not related to the library at all. How you write your handlers and display your views is completely up to you. Why should a simple router dictate how you write the rest of your code? I agree that it could negatively influence code that more novice programmers might write with it. They should replace the code inside the page handlers with a comment indicating that the user should render output there.