TiltFs
The user space file system based on Tilt.
Installation
$ gem install tilt-fs
Usage
1. Mount the filesystem
$ cd {some_dir}
$ mkdir _template
$ mkdir mnt
$ echo 'Hello, <%= name %>' > _template/hello.txt
$ tiltfs mnt/ _template/
-> Mount "_template" into "mnt"2. Access to the files
$ cd {some_dir}
$ cat mnt/hello.txt
Hello, <%= name %>
$
$ mv _template/hello.txt _template/hello.txt.erb
$ ruby -r yaml -e 'puts({name: "world"}.to_yaml)' > .data.yaml
    - you can pass the data through ".data.yaml"
$ cat mnt/hello.txt
Hello, world
$
$ ruby -r yaml -e 'puts({name: "NEW WORLD"}.to_yaml)' > .data.yaml
$ cat mnt/hello.txt
Hello, NEW WORLD3. Unmount the filesystem
$ cd {some_dir}
$ fusermount -u mnt/Contributing
- Fork it ( https://github.com/sh19910711/ruby-tilt-fs/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request