diff --git a/README.md b/README.md new file mode 100644 index 0000000000..7073f67db7 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# svelte + +Coming soon... diff --git a/compiler/generate/index.js b/compiler/generate/index.js index 50d83e9b42..f8fde71546 100644 --- a/compiler/generate/index.js +++ b/compiler/generate/index.js @@ -1,7 +1,133 @@ +import deindent from 'deindent'; +import walkHtml from './walkHtml.js'; + export default function generate ( parsed ) { - return ` + const counters = { + element: 0, + text: 0, + anchor: 0 + }; + + const renderBlocks = []; + const updateBlocks = []; + const teardownBlocks = []; + + const codeBlocks = []; + + // TODO add contents of