How load a tpl file in a component html (div)
-
I need to load a tpl file in a <div> in a page. My purpose is loaded an tpl file in a component and I need to pass parameter in this tpl file. I think that "Load()" function from jquery can be usefull but I'm not sure.
if (data.tpl === "account/favourites") { console.log("MIAOOO"); // Add your jQuery here. var gancio = $('ul[component="posts"]').empty(); //var gancio = $('#content'); var uid = app.user.uid; gancio.load("connect-aggiungi-bookmarked.tpl", function() { });
Anyone can suggest me how I can do this ? Or something like ajaxify.loadTemplate?
Copyright © 2024 NodeBB | Contributors