From 0d3b8f4cc94bdba49a1b74a1c92757f9a4f52882 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 engine/src/flutter/examples/htmlish/framework/element.sky create mode 100644 engine/src/flutter/examples/htmlish/framework/htmlish.sky create mode 100644 engine/src/flutter/examples/htmlish/samples/intro.sky diff --git a/engine/src/flutter/examples/htmlish/framework/element.sky b/engine/src/flutter/examples/htmlish/framework/element.sky new file mode 100644 index 0000000000..ab792677d4 --- /dev/null +++ b/engine/src/flutter/examples/htmlish/framework/element.sky @@ -0,0 +1,72 @@ +SKY MODULE - defines an element + + + + + diff --git a/engine/src/flutter/examples/htmlish/framework/htmlish.sky b/engine/src/flutter/examples/htmlish/framework/htmlish.sky new file mode 100644 index 0000000000..1baf62f5f0 --- /dev/null +++ b/engine/src/flutter/examples/htmlish/framework/htmlish.sky @@ -0,0 +1,109 @@ +SKY MODULE - exports some basic HTML-like elements + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/engine/src/flutter/examples/htmlish/samples/intro.sky b/engine/src/flutter/examples/htmlish/samples/intro.sky new file mode 100644 index 0000000000..c200e2d831 --- /dev/null +++ b/engine/src/flutter/examples/htmlish/samples/intro.sky @@ -0,0 +1,11 @@ +#!mojo mojo:sky + + + + Welcome to Sky + + +

Introduction

+

Hello world.

+ +