静态网站生成器 Metalsmith

码农软件 · 软件分类 · 网页开发工具 · 2019-03-20 18:56:36

软件介绍

Metalsmith:一个非常简单,可插拔的静态网站生成器。在 Metalsmith 中,所有的逻辑都是由插件来处理的。 你只需将它们链接在一起。

工作原理

  • 读取源目录中的所有文件。

  • 调用一系列操纵文件的插件。

  • 将结果写入目标目录!

每个插件都会调用源目录的内容,并且每个文件都可以包含将作为元数据附加的 YAML 前端内容,例如:

---
title: A Catchy Title
date: 2014-12-01
---

An informative article.

...将被解析为:

{
  'path/to/my-file.md': {
    title: 'A Catchy Title',
    date: new Date('2014-12-01'),
    contents: new Buffer('An informative article.')
  }
}

...然后所有插件可以按照预想操纵。 编写插件非常简单,只需看一下示例草稿插件即可。

本文地址:https://codercto.com/soft/d/1783.html

Text Processing in Python

Text Processing in Python

David Mertz / Addison-Wesley Professional / 2003-6-12 / USD 54.99

Text Processing in Python describes techniques for manipulation of text using the Python programming language. At the broadest level, text processing is simply taking textual information and doing som......一起来看看 《Text Processing in Python》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

XML 在线格式化
XML 在线格式化

在线 XML 格式化压缩工具