FEATURE: Import files in your schemes


#1

Hi All,

Today I pushed some changes that will allow you to include files in your schemes. This way you can split your layouts over multiple files :smile:

You can of course put the files into separate directories.

Example

This is an example using both types of available fragments.

scheme.html

<application-window data-id="SchemeTestWindow">
  <gui-vbox>
    <gui-vbox-container data-grow="0" data-shrink="1" data-basis="auto">

      <!-- You can still use the old way to split up into sections -->
      <gui-fragment data-fragment-id="MenuBar" />

    </gui-vbox-container>
    <gui-vbox-container data-grow="1" data-shrink="0" data-basis="auto" data-fill="true">

      <!-- And now you can also split them up into files :) -->
      <gui-fragment data-fragment-external="scheme-part.html" />

    </gui-vbox-container>
  </gui-vbox>
</application-window>

<application-fragment data-id="MenuBar">
  <gui-menu-bar>
    <gui-menu-bar-entry data-label="LBL_FILE">
      <gui-menu data-id="SubmenuFile">
        <gui-menu-entry data-id="MenuClose" data-label="LBL_CLOSE"></gui-menu-entry>
      </gui-menu>
    </gui-menu-bar-entry>
  </gui-menu-bar>
</application-fragment>

scheme-part.html

<div>
  <h1>This is just a test</h1>
  <p>ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn</p>
</div>

UPDATE: Version bump - alpha80