(function (deku, core) {
  // information
  deku.name = 'deku';
  deku.version = '0.0.5dev';

  // settings
  deku.templates = {};
  deku.processors = {};
  deku.prePipeline = function (value, valueName, index, hasNext) {
    return value;
  };
  deku.postPipeline = function (value, valueName, index, hasNext) {
    return value == null ? '': value;
  };
  deku.noSuchValue = function (valueName) {
    throw new Error('The value "' + valueName + '" is not found.');
  };
  deku.noSuchPartial = function (partialName) {
    throw new Error('The partial "' + partialName + '" is not found.');
  };
  deku.noSuchProcessor = function (processorName, value, valueName) {
    throw new Error('The processor "' + processorName + '" for the value "' + valueName + '" is not found.');
  };

  // behavior
  deku.prepare = function (source, options) {
    var opts = {};
    if (typeof source !== 'string' && typeof source !== 'function') {
      throw new Error('The argument "source" must be a string or a function.');
    }
    options = options || {};
    opts.noSuchValue = options.noSuchValue || deku.noSuchValue;
    opts.noSuchPartial = options.noSuchPartial || deku.noSuchPartial;
    opts.noSuchProcessor = options.noSuchProcessor || deku.noSuchProcessor;
    opts.prePipeline = options.prePipeline || deku.prePipeline;
    opts.postPipeline = options.postPipeline || deku.postPipeline;
    opts.templates = core.extend({}, options.templates, deku.templates);
    opts.processors = core.extend({}, options.processors, deku.processors);
    if (typeof opts.noSuchValue !== 'function') {
      throw new Error('The "noSuchValue" option or setting must be a function.');
    }
    if (typeof opts.noSuchPartial !== 'function') {
      throw new Error('The "noSuchPartial" option or setting must be a function.');
    }
    if (typeof opts.noSuchProcessor !== 'function') {
      throw new Error('The "noSuchProcessor" option or setting must be a function.');
    }
    if (typeof opts.prePipeline !== 'function') {
      throw new Error('The "prePipeline" option or setting must be a function.');
    }
    if (typeof opts.postPipeline !== 'function') {
      throw new Error('The "postPipeline" option or setting must be a function.');
    }
    return core.prepare(source, opts);
  };

  if (typeof module !== 'undefined') {
    module.exports = deku;
  } else if (typeof define === 'function' && define.amd) {
    define(deku);
  }

}(typeof module !== 'undefined' ? {} : deku,
  typeof module !== 'undefined' ? require('./internal/core') : deku.internal.core));
@@ -780,37 +780,29 @@
  %7D;%0A
-%0A  // behavior%0A  deku.prepare
+  deku.sourceResolver
  = f
@@ -833,27 +833,8 @@
 ) %7B%0A
-    var opts = %7B%7D;%0A
     
@@ -981,24 +981,179 @@
 n.');%0A    %7D%0A
+    return source;%0A  %7D;%0A%0A  // behavior%0A  deku.prepare = function (source, options) %7B%0A    var opts = %7B%7D;%0A    source = deku.sourceResolver(source, options);%0A
     options 

add sourceResolver to abstract template sources.