flutter_flutter/tests/modules/resources/multiple-scripts-child.sky
Adam Barth 16db84fde1 Add a basic sky-element custom element
After this CL, you can use <sky-element> to describe custom elements. The
current iteration is very basic and is hardcoded to "example", but its a start.

This CL renames the |init| function to |_init| to prevent importers from
calling it directly. Also, we now pass the <script> element to |_init| to give
some context.

R=ojan@chromium.org, eseidel@chromium.org

Review URL: https://codereview.chromium.org/950493003
2015-02-20 21:45:36 -08:00

19 lines
271 B
Plaintext

<sky>
<script>
final String one = 'one';
bool oneInit = false;
void _init(_) {
oneInit = true;
}
final conflict = 'one';
</script>
<script>
final String two = 'two';
bool twoInit = false;
void _init(_) {
twoInit = true;
}
final conflict = 'two';
</script>
</sky>