Framework7 Starter

HTML

<link rel="stylesheet" href="https://unpkg.com/framework7@3.0.0/css/framework7.css">
<script src="https://unpkg.com/framework7@3.1.1/js/framework7.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/template7/1.4.1/template7.min.js"></script>
<div id="app">
  <div class="panel panel-left panel-cover theme-dark">
    <div class="page"></div>
  </div>
  <div class="panel panel-right panel-reveal theme-dark">
    <div class="page"></div>
  </div>
  <div class="view view-main ios-edges">
    <div class="page" data-name="home">
      <div class="navbar">
        <div class="navbar-inner">
          <div class="left">
            <a href="#" class="link panel-open" data-panel="left">Left Panel</a>
          </div>
          <div class="title sliding">My App</div>
          <div class="right">
            <a href="#" class="link panel-open" data-panel="right">Right Panel</a>
          </div>
        </div>
        </div>
      <!-- Scrollable page content-->
      <div class="page-content">
        <div class="block block-strong" id="contents">
        </div>
      </div>
    </div>
  </div>
</div>

JavaScript

var app = new Framework7({
  root: '#app',
  theme: 'auto',
  routes: []
});

var viewMain = app.views.create('.view-main');
var $$ = Framework7.Dom7;

var tpl = Template7.compile(`
				<div class="row item-content item-input">
					<div class="item-inner">
						<div class="item-title item-floating-label">XXX</div>
						<div class="item-input-wrap">
                  <input type="text"  name="xxx" value="{{xxx}}">
							<span class="input-clear-button"></span>
						</div>
					</div>
				</div>`);

$$("#contents").html( tpl({xxx:"yyy"}));