(value, filename, type, controller)
| 3056 | } |
| 3057 | |
| 3058 | function modificators(value, filename, type, controller) { |
| 3059 | |
| 3060 | if (filename) { |
| 3061 | var length = F.directory.length; |
| 3062 | if (filename.substring(0, length) === F.directory) { |
| 3063 | filename = filename.substring(length); |
| 3064 | if (filename[0] !== '/') |
| 3065 | filename = '/' + filename; |
| 3066 | } |
| 3067 | |
| 3068 | if (F.modificators2) { |
| 3069 | var arr = F.modificators2[filename]; |
| 3070 | if (arr) { |
| 3071 | for (var i = 0; i < arr.length; i++) { |
| 3072 | var output = arr[i](type || 'view', filename, value, controller); |
| 3073 | if (output) |
| 3074 | value = output; |
| 3075 | } |
| 3076 | } |
| 3077 | } |
| 3078 | } |
| 3079 | |
| 3080 | if (!F.modificators) |
| 3081 | return value; |
| 3082 | |
| 3083 | for (var i = 0; i < F.modificators.length; i++) { |
| 3084 | var output = F.modificators[i](type || 'view', filename, value, controller); |
| 3085 | if (output) |
| 3086 | value = output; |
| 3087 | } |
| 3088 | |
| 3089 | return value; |
| 3090 | } |
| 3091 | |
| 3092 | function viewengine_load(name, filename, controller, component) { |
| 3093 |
no outgoing calls
no test coverage detected