184,162

Downloads

184,162

Downloads of v 2.0.7

128

Average downloads per day

2013-06-21

Last published

Share on Social Networks

License details

provided by Sonatype

BSD-3-Clause

MIT

Text Plugin for RequireJS

2.0.7

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. Download the plugin and put it in the app's baseUrl directory.

To install Text Plugin for RequireJS, run the following command in the Package Manager Console

Install-Package RequireJS.Text

Owners

Authors

Victor Cavalcante

Copyright

Copyright 2010-2012

Tags

Dependencies

Version History

Version Downloads Last updated