Skip to content
This repository has been archived by the owner on Mar 16, 2021. It is now read-only.

Stapelpanda/components-requirejs-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

components-requirejs-text

RequireJS text for the @robloach/component-installer

Simple composer.json file to allow requirejs-text to be installed by RobLoach/component-installer

Installing

Setup Composer to include this repository:

{
	...
	"require": {
  	...
  	"components/requirejs-text": "^2"
	},
	"repositories": [
	  	{ "type": "vcs", "url": "https://github.com/StapelPanda/components-requirejs-text" }
	]
}

Install using composer composer update

Usage

Using RequireJS

define(['jquery', 'text!woot.html'], function($, htmlTemplate){
$('body').html(htmlTemplate);
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published