Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

bundle your assets into single nim file inspired by go-bindata

License

NotificationsYou must be signed in to change notification settings

xmonader/nimassets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nimassetsNim Assets is heavily inspired bygo-bindata to bundle all of your assets into one single nim file.

Usage

nimassets 0.2.2 (Bundle your assets into nim file)    -h| --help: showhelp    -v| --version: show version    -o| --output: output filename    -f| --fast: faster generation    -d| --dir: dir to include (recursively) [can be used multipletimes-d=DIR1-d=DIR2 ...]    -t| --type: binary| base64| zstd| base64zstd    -cl| --compresslevel: compress levelfor zstd, default is 3

Bundle

To bundle all the files in directorytemplatesdir from theexamples folder into single nim fileassetsfile.nim

cd examplesnimassets -d=templatesdir -o=assetsfile.nim

-f or--fast flag can help with large assets directories-t or--type encoding method, default is base64

Use Assets

import assetsfile # name from -o=<filename>echo assetsfile.getAsset("templatesdir/index.html")

Development

To run tests, simply donimble test from the root of this repository.

To compile the distributable binary, runnimble assetsBin. It will be built and available in./build/nimassets.

About

bundle your assets into single nim file inspired by go-bindata

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp