openJsTemplate method

bool openJsTemplate(
  1. String templ8
)

Implementation

bool openJsTemplate(String templ8) {
  bool ok = true;
  Widget view;
  view = FrameworkModel.fromJs(templ8).getView();
  // build page
  CustomMaterialPage page = _buildPage('', child: view);
  // ensure we remove any current template
  if (_pages.length > 1) {
    _pages.removeLast();
  }
  // push the new template to the page
  _addPage(page, index: 1);
  return ok;
}