如何使用源代码在本地呈现站点?

时间:2015-07-02 17:18:03

标签: html twitter-bootstrap template-engine

我下载了Bootstrap(the middle one)的整个包,并正在调查其层次结构。我发现此源代码包含网站http://getbootstrap.com/

例如,getting-started页面的html文件如下所示:

---
layout: default
title: Getting started
slug: getting-started
lead: "An overview of Bootstrap, how to download and use, basic templates and examples, and more."
---


{% include getting-started/download.html %}
{% include getting-started/whats-included.html %}
{% include getting-started/grunt.html %}
{% include getting-started/template.html %}
{% include getting-started/examples.html %}
{% include getting-started/tools.html %}
{% include getting-started/community.html %}
{% include getting-started/disabling-responsiveness.html %}

<!-- Cross link to new migration page -->
<div class="bs-callout bs-callout-info" id="migration">
  <h4>Migrating from v2.x to v3.x</h4>
  <p>Looking to migrate from an older version of Bootstrap to v3.x? Check out <a href="../migration">our migration guide</a>.</p>
</div>

{% include getting-started/browser-device-support.html %}
{% include getting-started/third-party-support.html %}
{% include getting-started/accessibility.html %}
{% include getting-started/license.html %}
{% include getting-started/translations.html %}

我知道可以通过某种模板渲染引擎将其渲染到静态网站中。但怎么办呢?

0 个答案:

没有答案