define(["dojo/text!./path/some.txt"], function(textData) {
Dojo's AMD loader has some useful contextual loading features.
Note the exclamation mark in the dependency.
dojo/text!
can be used to load character data;
dojo/has!
can be used to load different modules based on
environment.
Writing your own plugin is relatively trivial.