TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

"Hello World" for authentication in a Backbone.js app

17 点作者 jenkinsj将近 12 年前

1 comment

jdavid将近 12 年前
@jenkinsj Great work. This is clean, readable and well commented. Many of the patterns are great for a `hello world` backbone/node app.<p>I noticed you are using the underscore.js templating engine, and that you are embedding the templates in script tags within a 'shadow' dom poly-fill.<p>you might want to use &#60;template&#62; tags instead, and use display:none to poly-fill. I found that it works pretty well, and it's more semantically correct. Browsers should expect template tags in the future to be templates. I have tested this in number of browsers and it seems pretty well supported even in IE.<p>&#60;template&#62; tags reference <a href="http://www.html5rocks.com/en/tutorials/webcomponents/template/" rel="nofollow">http://www.html5rocks.com/en/tutorials/webcomponents/templat...</a>