Skip to content

Plugin for RequireJS for loading template files via requirejs-text

Notifications You must be signed in to change notification settings

mattdeclaire/requirejs-tpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

requirejs-tpl

Plugin for RequireJS for loading template files via requirejs-text

Requirements

Assumptions

  • templates must be available via same domain, in /templates
  • template files use the .tpl extension

Usage

/templates/hello.tpl

<p>Hello World.</p>
define(['tpl!hello'], function(tpl) {
	document.write(tpl);
});

About

Plugin for RequireJS for loading template files via requirejs-text

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published