mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-12-22 22:52:35 +03:00
ab6c6d959d
- Δημιουργία script για παραγωγή documention του κώδικα - Μικρές διορθώσεις
20 lines
No EOL
469 B
JavaScript
20 lines
No EOL
469 B
JavaScript
/**
|
|
@overview Strips the rails template tags from a js.erb file
|
|
@module plugins/railsTemplate
|
|
@author Jannon Frank <jannon@jannon.net>
|
|
*/
|
|
|
|
|
|
exports.handlers = {
|
|
/**
|
|
* Remove rails tags from the source input (e.g. <% foo bar %>)
|
|
* @param e
|
|
* @param e.filename
|
|
* @param e.source
|
|
*/
|
|
beforeParse: function(e) {
|
|
if (e.filename.match(/\.erb$/)) {
|
|
e.source = e.source.replace(/<%.*%>/g, "");
|
|
}
|
|
}
|
|
}; |