btford / btford/angular-express-blog

New line

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
601
Forks
244
PR merge metrics
No merged PRs in 30d

Description

Using the example http://briantford.com/blog/angular-express.html I'm not able to multiline blog post.

\n obviously doesn't work

gets escaped by jade.

What I had to do (ugly) was to explode the text in an array of lines and for each line print a

{{line}}

.

any better solution? is it the right one?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the linked AngularJS and Express example and inspect how blog post text is passed through Jade, since no repository file or test is named. Reproduce the multiline rendering problem and determine a supported way for line breaks to appear without escaping HTML; done means a blog post displays multiple paragraphs or lines correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
angularjs, express, javascript, node.js
Domain
full-stack, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.