Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

// /etc/pacman.conf
[gnome-devel]
#SigLevel = Optional TrustAll
Server = http://softwareperonista.com.ar/repo/archlinux/gnome-devel/x86_64
funtion loadJsFile(filename){
var externalJsFilf=document.createElement('script');
externalJsFilf.setAttribute("type","text/javascript");
externalJsFilf.setAttribute("src", filename);
}
loadJsFile(PathToFile);
rawHTML = HTML.Raw("<h1> hello </h1>"); // your HTML String from twitter
div = document.getElementsByClassName("page-footer")[0] // somehow select a DOM element
tmpl = new Blaze.Template("Template.hello2", // create a template
function(){
view = this;
return rawHTML
}
);
var renderedTmpl = Blaze.render(tmpl, div); // and render it !
@lampe
lampe / gist:5bda16cf269f5d271598
Created February 5, 2015 23:53
meteor blaze notes
//HTMLJS
HTML.Raw("<div> <p> ich bin ein paragraph </p> </div>");
HTML.DIV(HTML.P("ich bin ein paragraph"));
HTML.DIV({'class': 'someDiv'}, HTML.P("ich bin ein paragraph"));
HTML.IMG({'class': 'someImg', "src": "http://i.imgur.com/UuGT4co.png"});
HTML.toHTML(HTML.DIV({'class': 'someDiv'}, HTML.P("ich bin ein paragraph")));
//Tracker
FancyReactivnes = function (value) { // much goodnes. much pretty. WoW
this.curValue = value;