Real time Sync
Hi
I'm trying to use firebase. I need to include a script tag like this:
span{{name}}
{{body}}/span
An HTML component renders it exactly like this.
How do achieve this.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hi
I'm trying to use firebase. I need to include a script tag like this:
span{{name}}
{{body}}/span
An HTML component renders it exactly like this.
How do achieve this.
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.
the only library not added as an external file is
I think jquery lib is part of Appery.
this is the tutorial I'm trying to follow:
https://github.com/firebase/firetube
We are not able to help with 3rd party tutorial or docs. Please consider contacting Firebase help.
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.
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
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