Static site generator in dart

已查看 552 次
跳至第一个未读帖子

alex

未读,
2013年2月16日 06:02:132013/2/16
收件人 mi...@dartlang.org
I like dart since the beginning for writing small web apps and command line utilities. For web sites (not apps in a single page), as soon as you want to have more than one pages, generating HTML is a pain, as soon as you want to have the proper html header or common needs (boostrap, analytics, menus, favicon, mobile tags...) and good search indexing (i.e. with content in the HTML, not loaded dynamically). It seems that the dartlang.org site use Jekyll to generate its site and I guess dart can make what Ruby/Python do...
I started my own utility just to share a footer/header for 3 or 4 pages but I don't want to reinvent the wheel.
Is there any work any progress regarding having a static site generator written in dart?
Simple ideas using build.dart and some utilities to generate pages from some HTML snippet or Markdown files are welcome (The html5lib looks like a good utility)
Also if there is a dart initiative to build a full features CMS generated from json/yaml/html files, I would be even more interested.
thanks
--alex

poltomb

未读,
2013年2月17日 23:21:542013/2/17
收件人 mi...@dartlang.org
I don't know if this is exactly what you are looking for, but I do believe you can do such a thing with Web UI, specifically, the web components piece. Since web components are not fully supported in all browsers (yet) the Web UI team has made a compiler to turn the web components into standard dart/html.

Bob Nystrom

未读,
2013年3月4日 13:29:232013/3/4
收件人 General Dart Discussion

On Sat, Feb 16, 2013 at 3:02 AM, alex <al...@tekartik.com> wrote:
Is there any work any progress regarding having a static site generator written in dart?

I'm not aware of one, though I do think it would be nice. It's a use case where client-side Dart penetration doesn't matter and you don't need a wide swatch of libraries to implement it. It's basically just some file IO and a little templating. Hell, if I had the time, I'd probably be writing one. :)

Cheers,

- bob

Michael Haubenwallner

未读,
2013年3月4日 15:43:312013/3/4
收件人 mi...@dartlang.org
Hi Alex, i'm in process of planning a website creator, dev should start this month. 
I have a stong backgroung in Python based CMS (Zope and Plone).
If you want to share thoughts and insights please let me know. 
Once the github project is online it will be simple to join development.

Best, Michael

Thomas Schranz

未读,
2013年7月23日 15:02:042013/7/23
收件人 mi...@dartlang.org
Do you guys know existing projects in that direction already?

We're looking to simplify our language stack (we use jekyll right now but that's the only ruby dependency we have)
so we were thinking about pelican (python) or if there is something in Dart already it would be awesome as well :)

Justin Fagnani

未读,
2013年7月23日 15:24:172013/7/23
收件人 General Dart Discussion
IMO, the ultimate solution here is to be able to render MDV templates on the server, so that not only do you get a static site generator, but you get an optimizer for dynamic sites.

That's probably quite a challenge, because we don't have server-side dart:html and html5lib does not really implement the DOM accurately, but at least the templates could be HTML with MDV-style mustaches, <template> tags, and HTML imports. That could possibly allow some reuse of templates now, even if you couldn't use custom elements or standard DOM-manipulating code on the server.

-Justin



--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
 
 

George Moschovitis

未读,
2013年7月23日 15:30:022013/7/23
收件人 mi...@dartlang.org

IMO, the ultimate solution here is to be able to render MDV templates on the server, so that not only do you get a static site generator, but you get an optimizer for ...custom elements or standard DOM-manipulating code on the server.

I hinted about this in the past. That would be absolutely fantastic.

-g.

Seth Ladd

未读,
2013年7月23日 16:18:292013/7/23
收件人 General Dart Discussion
On Tue, Jul 23, 2013 at 12:02 PM, Thomas Schranz <tho...@blossom.io> wrote:
Do you guys know existing projects in that direction already?

We're looking to simplify our language stack (we use jekyll right now but that's the only ruby dependency we have)
so we were thinking about pelican (python) or if there is something in Dart already it would be awesome as well :)

FWIW the dartlang.org site is built with jekyll. If there was an equivalent built with Dart, we'd use it. :)
 


On Monday, March 4, 2013 12:43:31 PM UTC-8, Michael Haubenwallner wrote:
Hi Alex, i'm in process of planning a website creator, dev should start this month. 
I have a stong backgroung in Python based CMS (Zope and Plone).
If you want to share thoughts and insights please let me know. 
Once the github project is online it will be simple to join development.

Best, Michael




On Saturday, February 16, 2013 12:02:13 PM UTC+1, alex wrote:
I like dart since the beginning for writing small web apps and command line utilities. For web sites (not apps in a single page), as soon as you want to have more than one pages, generating HTML is a pain, as soon as you want to have the proper html header or common needs (boostrap, analytics, menus, favicon, mobile tags...) and good search indexing (i.e. with content in the HTML, not loaded dynamically). It seems that the dartlang.org site use Jekyll to generate its site and I guess dart can make what Ruby/Python do...
I started my own utility just to share a footer/header for 3 or 4 pages but I don't want to reinvent the wheel.
Is there any work any progress regarding having a static site generator written in dart?
Simple ideas using build.dart and some utilities to generate pages from some HTML snippet or Markdown files are welcome (The html5lib looks like a good utility)
Also if there is a dart initiative to build a full features CMS generated from json/yaml/html files, I would be even more interested.
thanks
--alex

--

Sayth Renshaw

未读,
2016年11月19日 07:41:402016/11/19
收件人 Dart Misc
There is stillshot https://pub.dartlang.org/packages/stillshot
Not sure if anyone else has found others.

Sayth

回复全部
回复作者
转发
0 个新帖子