How load a tpl file in a component html (div)


  • GNU/Linux

    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?


Log in to reply
 

Looks like your connection to NodeBB was lost, please wait while we try to reconnect.