// Path: src/main/java/com/tale/bootstrap/TaleConst.java
// public static final String CLASSPATH = new File(AdminApiController.class.getResource("/").getPath()).getPath() + File.separatorChar;


import com.blade.Blade;
import java.io.File;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import static com.tale.bootstrap.TaleConst.CLASSPATH;
package com.tale.bootstrap;





/**
 * Created by biezhi on 2017/3/1.
 */
public final class TaleLoader {

    private TaleLoader() {
    }

    private static Blade blade;

    public static void init(Blade blade) {
        TaleLoader.blade = blade;
        loadPlugins();
        loadThemes();
    }

    public static void loadThemes() {
// Path: src/main/java/com/tale/bootstrap/TaleConst.java
// public static final String CLASSPATH = new File(AdminApiController.class.getResource("/").getPath()).getPath() + File.separatorChar;


// Path: src/main/java/com/tale/bootstrap/TaleLoader.java
import com.blade.Blade;
import java.io.File;
import java.lang.reflect.Method;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Files;
import java.nio.file.Paths;
import static com.tale.bootstrap.TaleConst.CLASSPATH;

package com.tale.bootstrap;





/**
 * Created by biezhi on 2017/3/1.
 */
public final class TaleLoader {

    private TaleLoader() {
    }

    private static Blade blade;

    public static void init(Blade blade) {
        TaleLoader.blade = blade;
        loadPlugins();
        loadThemes();
    }

    public static void loadThemes() {
        String themeDir = CLASSPATH + "templates" + File.separatorChar + "themes";