4 ms·
PHP is the only one of them that doesn't need it.
by adambard 14y ago
PHP is the only one of them that doesn't need it.
- spoiler 14y agoBecause PHP is a framework disguised as a language.
- steveklabnik 14y agoWill Passenger just serve up ERB files just like PHP? Now I'm curious.
- andyl 14y agoYou don't need Passenger. Just write the sinatra app, then 'ruby <yourapp>.rb'.
- irahul 14y agoHe isn't talking about the sinatra example. He is talking about apache/passenger serving .erb files directly as apache/mod_php does for .php files.
- irahul 14y agoI don't think it can(I did a quick search to confirm). But with apache, you can install a ruby script as cgi which renders the erbs and returns them.
- bandushrew 14y agoheh. It does if he wants to later complain about html and php code all mixed up. The only reason that is true is that he chose not to use a micro framework for php.
- adambard 14y agoThat's fair, I took that particular whinge out.
- touristtam 14y agoYou could have investigated micro php framework like silex tbh (silex.sensiolabs.org), with which you could have used Twig template (twig.sensiolabs.org). A bit an overkill for such a trivial task, though.