Abdur Rahman
Abdur Rahman

Reputation: 783

Laravel markdown mail vs blade templating

In laravel, new markdown feature for mailing provides some components to customize mail. I like them. They are cool but how are they different from blade layout as long as I can do the same with normal blade layout.

Upvotes: 4

Views: 3744

Answers (1)

Amade
Amade

Reputation: 3998

Markdown email gives you a simplified syntax compared to HTML. For example:

  • instead of wrapping headings in h1, h2, etc. tags, you can just put a #, ##, etc. at the beginning of the line
  • no need to wrap lists in <ul>, and list items in <li> tags. In markdown, you can just use a dash (-) for listing elements
  • italic/bold font can be achieved by putting */** around the text you want to emphasize

The above, and other features of markdown can make your templates more readable.

Upvotes: 3

Related Questions