用于生成静态站点的脚本? [英] Script to generate static site?

查看:75
本文介绍了用于生成静态站点的脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,


查看各种CMS工具后,无论是服务器 - (Drupal,

Pivot等)还是基于桌面的(CityDesk,可爱的网站建设者),它给我发了
我真的不需要复杂的东西

只是为了在我的网站上的每篇文章中添加导航栏,并生成

主页上有每篇文章的超链接。


我认为它只需要一个脚本...

1 。使用他选择的

编辑器获取用户生成的每个原始HTML文章(我优先考虑Namo的WYSIWYG编辑器,但它没有&b
),

2.从HEAD部分提取本文档的信息,并在BODY部分提取

内容,

3.通过一个模板,其中关键字将替换为

内容,并且

4.将结果保存到完整的HTML页面。

5.一次文章已经生成,只需建立主页

列出所有这些文章。


所以...在我自己写这篇文章之前,有人知道一个很好的解决方案

在Windows上运行, $作为命令行脚本还是基于GUI?


感谢您的任何提示

Fred。

Hello,

After looking at various CMS tools, either server- (Drupal,
Pivot, etc.) or desktop-based (CityDesk, Cute Site Builder), it
occured to me that I really didn''t need something that sophisticated
just to add navigation bars in each article on my site, and generate
the home page with hyperlinks to each article.

I figured all it took is a script that ...
1. takes each raw HTML article that the user has generated with the
editor of his choice (I prefere Namo''s WYSIWYG editor, but it doesn''t
matter),
2. extract infos on this document from the HEAD section and the
content in the BODY section,
3. run this through a template where keywords will be replaced with
the content, and
4. save the result into a full HTML page.
5. Once the articles have been generated, just build the home page to
list all those articles.

So... before I write this myself, does someone know of a good solution
to run on Windows, either as a command-line script or GUI-based?

Thank you for any tip
Fred.

推荐答案

Fred< fr ** @ acme.com>在消息新闻中写道:< i3 ******************************** @ 4ax.com>。 ..
Fred <fr**@acme.com> wrote in message news:<i3********************************@4ax.com>. ..
所以......在我自己写这篇文章之前,有人知道在Windows上运行的一个很好的解决方案,无论是作为命令行脚本还是GUI-基于?
So... before I write this myself, does someone know of a good solution
to run on Windows, either as a command-line script or GUI-based?




XSLT


在XHTML中进行创作的另一个原因



XSLT

Yet another reason to do your authoring in XHTML


Andy Dingley写道:
Andy Dingley wrote:
XSLT

在XHTML中进行创作的另一个原因
XSLT

Yet another reason to do your authoring in XHTML



所以XSLT不能用于将XML转换为HTML吗?


-

Brian(删除.invalid给我发电子邮件)
http://www.tsmchughs.com/


Brian写道:
Andy Dingley写道:
Andy Dingley wrote:
XSLT

另一个原因是在XHTML中进行编写
XSLT

Yet another reason to do your authoring in XHTML



所以XSLT不能用于将XML转换为HTML吗?


So XSLT cannot be used to transform XML to HTML?




你不明白他写的是什么!关键是当文件干净,有效,符合W3C标准的XHTML,

而不是tag-soup时,转换

更容易。


为什么有人想要使用XSLT实际上是一个简单的正则表达式

超出了我的范围。我想我只是理解这些复杂的东西。

Matthias



You didn''t understand what he wrote! The point was that a transformation
is easier done when the file is clean, valid, W3C-compliant XHTML,
instead of tag-soup.

Why anybody would want to use XSLT for what''s essentially a simple regex
is beyond me, though. I guess I just understand this complex stuff.
Matthias


这篇关于用于生成静态站点的脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆