title: Meteor: how to put client code in cordova block
body: <p>I'm developing a hybrid application which gets an ID from a nfc tag and then show the data (taken from server side) in the app.</p>
  
  <p><strong>How do I actually load a template (defined in client/view/template.html) since the following code is run only on mobile?</strong></p>
  
  <pre><code>if (Meteor.isCordova){
      Meteor.startup(function(){ 
  
          var onNfc = function(nfcEvent) {
              var tag = nfcEvent.tag,
                  ndefMessage = tag.ndefMessage;
  
              var strMessage = JSON.stringify(ndefMessage);
              alert(strMessage); // show the gathered data
  
              messagePayload= JSON.parse(strMessage)[0].payload;
              msgPayloadStr = nfc.bytesToString(messagePayload); // decode payload
              // alert(msgPayloadStr); // show the gathered data
  
              // show the data on client side
              // TODO
          };
  
          nfc.addNdefListener(
              onNfc,
              function(){}, // success
              function(){} // failure
          );
      })
  }
  </code></pre>