Skip to content

Instantly share code, notes, and snippets.

View lindsoe's full-sized avatar

Per Larsen lindsoe

View GitHub Profile
@lindsoe
lindsoe / templateLoader.js
Created June 3, 2016 19:24 — forked from amirgalor/templateLoader.js
Kendo UI - "Template Loader" - improved !
/**
This defines a Global object to serve loading external templates.
It handles multiple "Templates" (Or "Views") loading,
by operating on an array of JSON objects of type {path: "path to file", tag: "script's tag to attach to dom"}
This way-
you can load multiple templates, each with it's own tag so they can be referenced seperatly,
templates can be written in a much "cleaner" manner - as they are not wrapped by a "script" tag, IDE's will recognize the html.
@lindsoe
lindsoe / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console