From 1da15583c5bb968fdc0bce3bd8f40a8fcdbf480e Mon Sep 17 00:00:00 2001 From: Hixie Date: Tue, 4 Nov 2014 13:32:07 -0800 Subject: [PATCH] Docs: add an example that uses the current APIs to define an element; an example that uses that example to define some HTMLy elements; and an example to use those HTMLy elements to display a hello world doc. Highly incomplete WIP. Review URL: https://codereview.chromium.org/698293003 --- examples/htmlish/framework/element.sky | 72 ++++++++++++++++ examples/htmlish/framework/htmlish.sky | 109 +++++++++++++++++++++++++ examples/htmlish/samples/intro.sky | 11 +++ 3 files changed, 192 insertions(+) create mode 100644 examples/htmlish/framework/element.sky create mode 100644 examples/htmlish/framework/htmlish.sky create mode 100644 examples/htmlish/samples/intro.sky diff --git a/examples/htmlish/framework/element.sky b/examples/htmlish/framework/element.sky new file mode 100644 index 0000000000..ab792677d4 --- /dev/null +++ b/examples/htmlish/framework/element.sky @@ -0,0 +1,72 @@ +SKY MODULE - defines an element + + + + + diff --git a/examples/htmlish/framework/htmlish.sky b/examples/htmlish/framework/htmlish.sky new file mode 100644 index 0000000000..1baf62f5f0 --- /dev/null +++ b/examples/htmlish/framework/htmlish.sky @@ -0,0 +1,109 @@ +SKY MODULE - exports some basic HTML-like elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/examples/htmlish/samples/intro.sky b/examples/htmlish/samples/intro.sky new file mode 100644 index 0000000000..c200e2d831 --- /dev/null +++ b/examples/htmlish/samples/intro.sky @@ -0,0 +1,11 @@ +#!mojo mojo:sky + + + + Welcome to Sky + + +

Introduction

+

Hello world.

+ +