RequireJS.Text icon

Text Plugin for RequireJS

A RequireJS/AMD loader plugin for loading text resources.

Known to work in RequireJS, but should work in other AMD loaders that support the same loader plugin API.
It is nice to build HTML using regular HTML tags, instead of building up DOM structures in script.

However, there is no good way to embed HTML in a JavaScript file. The best that can be done is using a string of HTML, but that can be hard to manage, particularly for multi-line HTML.

The text.js AMD loader plugin can help with this issue.

It will automatically be loaded if the text! prefix is used for a dependency.


- Last update: 6/21/2013
- Version: 2.0.7
- Project documentation:
- Read more info on
This package has 1 dependency.
24 packages depend on this package.

Run this command from the Package Manager Console:

Install-Package RequireJS.Text

javascript AMD Require


Did you write a blog post and have a URL to share about this package? Tips and tricks? Please submit your links and reviews.

Please login first. It's easy! Just use your Google or Microsoft account.