Text Plugin for RequireJS NuGet Package

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.




Got any Text Plugin for RequireJS Question?





Info

Version: 2.0.7
Author(s): Victor Cavalcante
Last Update: Friday, June 21, 2013
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/requirejs/text
NuGet Url: https://www.nuget.org/packages/RequireJS.Text


Install
Install-Package RequireJS.Text
dotnet add package RequireJS.Text
paket add RequireJS.Text
RequireJS.Text Download (Unzip the "nupkg" after downloading)

26 packages depend on this package.


Tags



STATS

must-have-score

2.5

avg-downloads-per-day

176

days-since-last-release

3934