简体   繁体   中英

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM