-
-
Save vjousse/62b35d618a71d44c0b32024a14029657 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "markd" | |
class Blog::Post < BrowserAction | |
include Auth::AllowGuests | |
get "/blog/:post_slug" do | |
file_content = File.read("content/fr/#{post_slug}.md") | |
html Blog::PostPage, title: post_slug, html_content: html_content | |
end | |
end | |
# URL http://localhost:3001/blog/2012-11-05-recrutement-développeur-web-comment-sortir-du-lot-cv-lettre-de-motivation | |
# gives the value `2012-11-05-recrutement-d%C3%A9veloppeur-web-comment-sortir-du-lot-cv-lettre-de-motivation` inside the variable post_slug | |
# this seems pretty normal to me. Any way to "unescap" the `é` character to get it bakc from the `%C3%A9` entity? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment