Sha256: 2a98981dbd484c0e5ae3ae1bea1ac1952e8d7119c3567e2d93a945effd4eabb5

Contents?: true

Size: 577 Bytes

Versions: 1

Compression:

Stored size: 577 Bytes

Contents

var fs = require("fs");

var base = fs.readFileSync('base.html').toString();

['top','bottom'].forEach(function(v){
    ['left','right'].forEach(function(h){
        ['1','2','3','4','5'].forEach(function(t){
            var text = fs.readFileSync('t' +t+'.html').toString();
            var outFile = 'out/' + t +v.charAt(0) + h.charAt(0) + '.html';
            var out = base
                .replace(/\{\{\{t\}\}\}/g,text)
                .replace(/\{\{v\}\}/g,v)
                .replace(/\{\{h\}\}/g,h);
            fs.writeFileSync(outFile, out);
        });
    });
});

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
radius-rails-3.1.4 app/assets/components/eonasdan-bootstrap-datetimepicker/test/screen-capture/compile.js