ecwyne / meteor-polymer-elements

Add polymer-elements to Meteor project
https://atmospherejs.com/ecwyne/polymer-elements
59 stars 14 forks source link

Unknown stache tag 'paper_tab' or 'paper_tabs' #25

Closed bangonkali closed 9 years ago

bangonkali commented 9 years ago

Hi,

I am getting issues with the following:

polymer.html

<head>
  <title>polymer</title>
</head>
<body>
  {{> hello}}
</body>

<template name="hello">

  {{#core_toolbar}}
    {{#paper_icon_button attrs=headerAttributeMenu}}
    {{/paper_icon_button}}

    <span flex>Title</span>

    {{#paper_icon_button attrs=headerAttributeMoreButton}}
    {{/paper_icon_button}}

    {{#paper_tabs attrs=headerAttributeMoreButton}}
      {{#paper_tab}}One{{/paper_tab}}
      {{#paper_tab}}Two{{/paper_tab}}
    {{/#paper_tabs}}

  {{/core_toolbar}}

  {{> paper_checkbox attrs=attributeObject}}
  {{#paper_button attrs=buttonObject}}Submit!{{/paper_button}}
  <button>Click Me</button>
  <p>You've pressed the button {{counter}} times.</p>
</template>

polymer.js

if (Meteor.isClient) {
  // counter starts at 0
  Session.setDefault('counter', 0);

  Template.hello.helpers({
    counter: function () {
      return Session.get('counter');
    }
  });

  Template.hello.events({
    'click button': function () {
      // increment the counter when button is clicked
      Session.set('counter', Session.get('counter') + 1);
    }
  });

  Template.hello.helpers({
    checkBoxObject: function () {
      return { checked: true }
    },
    buttonObject: function () {
      return { class: "myClass" }
    },
    headerAttributeMenu: function() {
      return {
        id : "navicon",
        icon : "menu"
      };
    },
    headerAttributeMoreButton: function() {
      return {
        id : "morebutton",
        icon : "more-vert"
      };
    },
    headerAttributePaperTabsBottomFit: function() {
      return {
        class: "bottom fit",
        id : "morebutton",
        selected : 0
      };
    }
  });
}

if (Meteor.isServer) {
  Meteor.startup(function () {
    // code to run on server at startup
  });
}

I get an error:

D:\Project\polymer>meteor
[[[[[ ~\D\Project\polymer ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/
   Type Control-C twice to stop.

=> Errors prevented startup:

   While building the application:
   polymer.html:22: Unknown stache tag
   ...wo{{/paper_tab}}     {{/#paper_tabs}}    ...
   ^

=> Your application has errors. Waiting for file change.
ecwyne commented 9 years ago

{{/#paper_tabs}} should be {{/paper_tabs}} on line 22