1. A quick Euphoria MVC update
- Posted by ghaberek (admin) Jun 02, 2019
- 1744 views
I pushed the changes I've been working on for the past couple months. It doesn't look like much, but the biggest change is that the path parser now correctly parses variables using regular expressions. Previously, I had it just splitting the path on slashes, so things like "/user/<id>" would correctly find "/user/123". But it got thrown off by anything more complicated, like what we use on this site, such as "/user/123.wc", would not match correctly, but now it does.
https://github.com/OpenEuphoria/euphoria-mvc/commits/master
-Greg
2. Re: A quick Euphoria MVC update
- Posted by ghaberek (admin) Jul 04, 2019
- 1481 views
- Last edited Jul 22, 2019
Another quick update! I've added a very basic web server and very basic logging functionality.
The logger has color-coded line output and supports multiple targets (e.g. STDERR, myfile.log, etc.) and log levels (e.g. ERROR, WARN, INFO, DEBUG, etc.) with each level receiving its own color.
The web server will allow you to develop a web application without having to set up a development server. Just call server:start() in your application and it will do the rest!
You can still use app:run() for CGI applications, and that's probably better for real-world usage for the time being.
https://github.com/OpenEuphoria/euphoria-mvc/commits/master
-Greg
3. Re: A quick Euphoria MVC update
- Posted by ghaberek (admin) Jul 22, 2019
- 1412 views
More updates! More functionality! Better logging! A mostly-working web server! (Just don't try to POST, m'kay?)
https://github.com/OpenEuphoria/euphoria-mvc/commits/master
-Greg