Пример #1
0
function render(input, out, __component, component, state) {
  var data = input;

  out.w("<h1" +
    marko_attr("data-marko-key", marko_keyAttr("myStart", __component)) +
    "></h1><div" +
    marko_attr("data-marko-key", marko_keyAttr("myEnd", __component)) +
    "></div>");
}
Пример #2
0
function render(input, out, __component, component, state) {
  var data = input;

  out.e("H1", {
      "data-marko-key": marko_keyAttr(input.myStartKey, __component)
    }, input.myStartKey, component, 0);

  out.e("DIV", {
      "data-marko-key": marko_keyAttr(input.myEndKey, __component)
    }, input.myEndKey, component, 0);
}
Пример #3
0
function render(input, out, __component, component, state) {
  var data = input;

  out.w("<h1" +
    marko_attr("data-marko-key", marko_keyAttr(input.myStartKey, __component)) +
    "></h1>");

  marko_renderComponent(my_component_tag, {}, out, "0");
}
Пример #4
0
function render(input, out, __component, component, state) {
  var data = input;

  out.w("<div class=\"root\">");

  marko_renderComponent(app_foo_tag, {}, out, "foo");

  out.w("<a href=\"ebay.com\"" +
    marko_attr("data-marko-key", marko_keyAttr("link", __component)) +
    ">eBay</a></div>");
}
Пример #5
0
function render(input, out, __component, component, state) {
  var data = input;

  out.w("<div><span" +
    marko_attr("data-marko-key", marko_keyAttr("spanA", __component)) +
    ">A</span>");

  another_component_tag({
      renderBody: function renderBody(out) {
        out.w("<div><span>This is <b>static</b></span></div>");
      }
    }, out, __component, "1");

  out.w("</div>");
}