X-Git-Url: http://git.megacz.com/?p=org.ibex.xt.git;a=blobdiff_plain;f=src%2Forg%2Fibex%2Fxt%2FTemplate.java;h=b5850335a59aac7eddaa762bb9848da15e5feb43;hp=f3955f2a6b17ec663e40608b768952a3d073c80e;hb=8f8109c54eee0492842c79ae96ef311bc4d2ebd0;hpb=5365f47787b1b4eeca31ad5da2373237371e264e diff --git a/src/org/ibex/xt/Template.java b/src/org/ibex/xt/Template.java index f3955f2..b585033 100644 --- a/src/org/ibex/xt/Template.java +++ b/src/org/ibex/xt/Template.java @@ -1,3 +1,7 @@ +// Copyright 2000-2005 the Contributors, as shown in the revision logs. +// Licensed under the Apache Public Source License 2.0 ("the License"). +// You may not use this file except in compliance with the License. + package org.ibex.xt; import org.ibex.js.*; import org.ibex.util.*; @@ -10,7 +14,7 @@ import javax.servlet.http.*; public class Template extends Node.Stream.Filter implements Node.Stream.Functor { - static Template newTemplate(Servlet.ServletScope servletscope, JSScope scope, String str) { + static Template newTemplate(Servlet.ServletScope servletscope, Scope scope, String str) { try { File f = new File(str); if (!f.exists()) f = new File(str + ".xt"); @@ -19,11 +23,11 @@ public class Template extends Node.Stream.Filter implements Node.Stream.Functor } catch (Exception e) { throw new RuntimeException(e); } } - static JSScope copyNodeToScope(Node n, JSScope scope) { + static Scope copyNodeToScope(Node n, Scope scope) { try { for(int i=0; i