MCPcopy Index your code
hub / github.com/totaljs/framework / modificators

Function modificators

internal.js:3058–3090  ·  view source on GitHub ↗
(value, filename, type, controller)

Source from the content-addressed store, hash-verified

3056}
3057
3058function 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
3092function viewengine_load(name, filename, controller, component) {
3093

Callers 3

internal.jsFile · 0.85
viewengine_readFunction · 0.85
viewengine_dynamicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected