Sha256: e47084df64321fdb029c9d1be8011015144e2cdffd139c346bdb7106e51752a5

Contents?: true

Size: 239 Bytes

Versions: 1

Compression:

Stored size: 239 Bytes

Contents

function View() {
  this.dir = "/templates";
}

View.prototype.render = function(file, vars) {
  return new EJS({url: this.full_path(file)}).render(vars);
};

View.prototype.full_path = function(file) {
  return this.dir + "/" + file;
};

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rawq-0.1.0 lib/rawq/templates/public/javascript/view.js