Package info.bliki.extensions.scribunto.template

Examples of info.bliki.extensions.scribunto.template.ModuleExecutor


                                char[] src, int beginIndex, int endIndex, boolean isSubst) throws IOException {
        if (parts.size() < 2) {
            throw new AssertionError("not enough arguments");
        }

        ModuleExecutor executor = model.getModuleExecutor();
        if (executor == null) {
            throw new AssertionError("no ModuleExecutor defined");
        }
        String module = parts.get(0).trim();
        String method = parts.get(1).trim();
        Frame parent = model.getFrame();
        try {
            Map<String, String> map = getParameters(parts, model);
            return executor.run(model, module, method, new Frame(map, parent));
        } finally {
            model.setFrame(parent);
        }
    }
View Full Code Here


     *          must already exist.
     */
    public APIWikiModel(User user, WikiDB wikiDB, Locale locale, String imageBaseURL, String linkBaseURL, String imageDirectoryName) {
        super(Configuration.DEFAULT_CONFIGURATION, locale, imageBaseURL, linkBaseURL);

        fModuleExecutor = new ModuleExecutor();
        fUser = user;
        fWikiDB = wikiDB;
        if (imageDirectoryName != null) {
            if (imageDirectoryName.charAt(imageDirectoryName.length() - 1) == '/') {
                fImageDirectoryName = imageDirectoryName;
View Full Code Here

TOP

Related Classes of info.bliki.extensions.scribunto.template.ModuleExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.