Page 2 of 3

Real time Sync

Posted: Wed Jan 29, 2014 8:29 pm
by cvc

Hi

I'm trying to use firebase. I need to include a script tag like this:
Image
span{{name}}
{{body}}/span

An HTML component renders it exactly like this.

How do achieve this.


Real time Sync

Posted: Wed Jan 29, 2014 9:42 pm
by Kateryna Grynko

Could you please show us the exact code you add in HTML component?
Are there any console errors?
Please make sure you connected all the needed libraries for work with Firebase, if they use them.


Real time Sync

Posted: Wed Jan 29, 2014 9:53 pm
by cvc

Here is the sript tag.Image
Here's are the libraries needed
Image


Real time Sync

Posted: Wed Jan 29, 2014 10:02 pm
by cvc

the output Image


Real time Sync

Posted: Wed Jan 29, 2014 10:02 pm
by cvc

the only library not added as an external file is

I think jquery lib is part of Appery.


Real time Sync

Posted: Wed Jan 29, 2014 10:03 pm
by cvc

this is the tutorial I'm trying to follow:
https://github.com/firebase/firetube


Real time Sync

Posted: Wed Jan 29, 2014 10:12 pm
by maxkatz

We are not able to help with 3rd party tutorial or docs. Please consider contacting Firebase help.


Real time Sync

Posted: Wed Jan 29, 2014 10:18 pm
by cvc

this tutorial works well as a web app. but when I try to integrate it with my appery app I get the screen above. How do I render Mustache templates in appery.
Surely you can help with that.


Real time Sync

Posted: Thu Jan 30, 2014 10:45 am
by Maryna Brodina

Hello! I'm sorry, but adding and using external libraries are outside the scope of support. Hope you understand that it's not possible to give step by step instructions for each specific case. Your particular case is pretty easy, you just need to create JS asset with code from https://github.com/janl/mustache.js/b...prevar view = {
title: "Joe",
calc: function () {
return 2 + 4;
}
};
var output = Mustache.render("{{title}} spends {{calc}}", view);
alert(output);/pre


Real time Sync

Posted: Fri Jan 31, 2014 4:58 am
by cvc

Hi Maryna

I understand what mean. The difficulty is not in adding the libraries and JS that Ia need, it's in figuring out why Appery is not rendering dynamic template properly. I have tried similar process on my PC and on another platform and it works well but not on Appery.

There are no errors in the console. I've tried to change the order in which files are linked in the source code head tags but no luck.

I understand you dont support much with external libraries, but I might just be missing one little thing which I've spent 3 days trying to figure out.
You who built Appery are in a much better position to know how to render dynamic templates.

Kindly help. Maybe if I shared the app with you, you can see and understand what I need to do.

Regards