Skip to main content
RequireJS.Text package icon

RequireJS.Text

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.

Total Downloads
1.9M
1,869,459
Published
Jun 21, 2013
Latest stable version

Install

.NET CLI
dotnet add package RequireJS.Text --version 2.0.7
Package Manager Console
Install-Package RequireJS.Text -Version 2.0.7
PackageReference
<PackageReference Include="RequireJS.Text" Version="2.0.7" />

Frameworks

No framework metadata available.

Dependencies

[2.1.6, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

No SPDX license expression is published. Review the license text and your organisation's policy before redistribution.

No target framework metadata is available. Confirm compatibility in a representative project before standardising on this package.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.