# 2019.07.11
[类库] common-tags 是处理字符串模板(template_strings)所用到的工具,它提供了大量函数,如:处理字符串模板时出现缩进、换行、循环等问题,感觉很好用哈:https://github.com/declandewet/common-tags (opens new window)
[新闻] Lodash 被爆出一个高严重性安全漏洞——原型污染漏洞,如果是对外开放的服务,需要尽快升级哈:https://mp.weixin.qq.com/s/tfZq2PZylGfMjOp8h8eeTw (opens new window)
[新闻] 阿里巴巴发布 Aliyun Serverless VS Code 插件,轻松开发阿里云函数计算:https://mp.weixin.qq.com/s/K-ZB-DvZRA9S3OxBQ9PwZw (opens new window)
[文章] 了解什么是微前端:https://juejin.im/post/5d1f19e3f265da1bab29ce5f (opens new window)
[工具] 一款真正的跨平台摸鱼神器,可以更加隐秘性大胆的看小说:https://github.com/cteamx/Thief-Book (opens new window)
# 示例
import {html} from 'common-tags'
let fruits = ['apple', 'orange', 'watermelon']
html`
<div class="list">
<ul>
${fruits.map(fruit => `<li>${fruit}</li>`)}
${'<li>kiwi</li>\n<li>guava</li>'}
</ul>
</div>
`
<div class="list">
<ul>
<li>apple</li>
<li>orange</li>
<li>watermelon</li>
<li>kiwi</li>
<li>guava</li>
</ul>
</div>
# 配图