duod 1.0.0

Duo asset management integration.


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

DuoD

By combining the powers of Duo and D's templates, DuoD provides a simple method to integrate the construction of frontend web resources with ease.

Duo allows you to write simple front end requirement files that pull in their dependencies when constructed. Combined with D's awesome templating, these assets can be constructed and utilized anywhere in your code or even in a Vibe.d diet template!.

Usage

Once DuoD is imported (import duod;) you can, simultaniously, register an asset to be built when the --duod-build switch is given to your application, as well as write the code to use that asset like so:

    Asset!"assets/index.css".require;

This will return the HTML code to use the resource when it is built which aslo allows this to be used in a deit template.

Example

Please see the examples directory of the repository for a usage example.

Authors:
Dependencies:
tested
Versions:
1.2.1 2015-Mar-02
1.2.0 2015-Mar-02
1.1.2 2015-Feb-23
1.1.1 2015-Feb-23
1.1.0 2015-Feb-23
Show all 8 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 260 downloads total

Score:
0.7
Short URL:
duod.dub.pm