Ask coding questions

← Back to all posts
Multi-Line Strings in JSON
Cooli (21)

How can I add multi-line strings to add a new line automatically for my blog website so the styling is better?

Comments
hotnewtop
xfinnbar (149)

Quick tip for you: Instead of using three functions for index.html and /, you can just add multiple decorators over the one function:

@app.route("index.html")
@app.route("/index")
@app.route("/")
def index():
  return render_template("index.html")`
OldWizard209 (1643)

Do it in the template file? Or render a js log statement with a newline everytime a page is made? And BTW, the css on this thing is damn good

Cooli (21)

@OldWizard209 Okay, thanks for your acknowledgment!