3 ms·
Will Passenger just serve up ERB files just like PHP? Now I'm curious.
by steveklabnik 14y ago
Will 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.