import { Block, initApp, find } from './dwayne';

class App extends Block {
  static template = `
    <form>
      <input d-value="a"/>
      <br/>
      <input d-value="b"/>
      <div>{'a: "' + a + '"'}</div>
      <div>{'b: "' + b + '"'}</div>
      <button type="reset">Reset</button>
    </form>
  `;

  a = '';
  b = '';
}

Block.register('App', App);

initApp('App', find('.root'));

@@ -1,390 +1 @@
-import %7B Block, initApp, find %7D from './dwayne';%0A%0Aclass App extends Block %7B%0A  static template = %60%0A    %3Cform%3E%0A      %3Cinput d-value=%22a%22/%3E%0A      %3Cbr/%3E%0A      %3Cinput d-value=%22b%22/%3E%0A      %3Cdiv%3E%7B'a: %22' + a + '%22'%7D%3C/div%3E%0A      %3Cdiv%3E%7B'b: %22' + b + '%22'%7D%3C/div%3E%0A      %3Cbutton type=%22reset%22%3EReset%3C/button%3E%0A    %3C/form%3E%0A  %60;%0A%0A  a = '';%0A  b = '';%0A%7D%0A%0ABlock.register('App', App);%0A%0AinitApp('App', find('.root'));
 %0A

Reset entry file.