Changes:
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / corext / template / php / HTMLUnitContext.java
index afec8f5..136e438 100644 (file)
@@ -22,10 +22,17 @@ public class HTMLUnitContext extends DocumentTemplateContext {
   /** The platform default line delimiter. */
   private static final String PLATFORM_LINE_DELIMITER = System.getProperty("line.separator"); //$NON-NLS-1$
 
-  private static final String specialChars = "&<#";
+  /** special characters
+   * '&' for the start of HTML entities
+   * '<' for the start of HTML tags
+   * '#' for the start of colour attributes
+   * '{' for the start of smarty partitions inside HTML code
+   */
+  private static final String specialChars = "&<#{";
+
   /** The compilation unit, may be <code>null</code>. */
   //   private final ICompilationUnit fCompilationUnit;
-
+  protected boolean fForceEvaluation;
   /**
    * Creates a compilation unit context.
    * 
@@ -174,5 +181,10 @@ public class HTMLUnitContext extends DocumentTemplateContext {
   //                   return null;
   //           }       
   //   }
-
+  /**
+   * Forces evaluation.
+   */
+  public void setForceEvaluation(boolean evaluate) {
+    fForceEvaluation = evaluate;
+  }
 }