A simple Node command line tool that watches and compiles dust templates recursively from one directory to another
- npm install dust_compiler -g
- $ dust_compiler {input path defaults to ./template} {output_path defaults to ./compiles_temlates}
A simple Node command line tool that watches and compiles dust templates recursively from one directory to another
Currently if a user attempts to point to a particular folder as the source/target parameters but fails to include the trailing slash, dust_compiler will not actually read the last path component as a directory.
It should check whether the last path component actually points to a directory, and if so, handle it as if the user had entered it with a trailing slash.
Currently, if the user saves a template file with an error such that it cannot be compiled, dust_compiler will output the error and then quit. This means the user would have to fix the error and then re-start dust_compiler.
Instead, dust_compiler should log that there is an error, but instead of quitting, it should just skip that file. Once the file is re-saved with the error fixed, dust_compiler will then automatically re-compile the file.
Dust_compiler should not try to compile files that are not actual templates. Unfortunately, it's not just a matter of keeping a separate folder for only template files as currently it will try to compile things like svn metadata files.
The easiest and most obvious solution would be to only try to compile files with certain extensions, such as .html
or .dust
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.