```ruby
 template_path.to_s[0] == ?/ ? template_path : "/#{template_path}"
```
I copied this line from padrino v0.12.0 released's source.
@ujifgc refactored the code, and this line was gone. Sorry to bring it back.
?/ is the same as '/', and ? can be used for single char string.