Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

added some templates

  • Loading branch information...
commit e86bdd8c0533722f9c61d917241e1b0d78f96019 1 parent 0773aab
Shimon Doodkin authored June 25, 2010
1  templates/01 code.html
... ...
@@ -0,0 +1 @@
  1
+hello <% code %> world
6  templates/01 code.html.expected.txt
... ...
@@ -0,0 +1,6 @@
  1
+open tags and close tags are: "<%" "%>"
  2
+---input:
  3
+hello <% code %> world
  4
+----
  5
+-----result-----
  6
+[{"type":"text","s":0,"e":6,"data":"hello "},{"type":"code","s":8,"e":14,"data":" code "},{"type":"text","s":16,"e":22,"data":" world"}]
1  templates/02 shortcut.html
... ...
@@ -0,0 +1 @@
  1
+hello <%= code %> world
6  templates/02 shortcut.html.expected.txt
... ...
@@ -0,0 +1,6 @@
  1
+open tags and close tags are: "<%" "%>"
  2
+---input:
  3
+hello <%= code %> world
  4
+----
  5
+-----result-----
  6
+[{"type":"text","s":0,"e":6,"data":"hello "},{"type":"shortcut","s":9,"e":15,"data":" code "},{"type":"text","s":17,"e":23,"data":" world"}]
42  templates/03 instring.html
... ...
@@ -0,0 +1,42 @@
  1
+string1 in string2 <% echo+=" ' "  %> end string1 in string2 
  2
+string2 in string1 <% echo+= ' " '  %> end string1 in string2 
  3
+
  4
+backslashed string1 in string1 <% echo+=' \' '  %> end backslashed string1 in string1 
  5
+double backslash near string1 in string1 <% echo+=' \\'  %> end double backslash near string1 in string1 
  6
+double backslash near string2 in string2 <% echo+=" \\"  %> end double backslash near string2 in string2 
  7
+
  8
+everything in string <% echo+=' \\ \" \' %> <% <%= %>%> '  %> end everything in string
  9
+
  10
+
  11
+open tag in string1 <% echo+='<%'  %> end open tag in string1
  12
+open tag in string2 <% echo+="<%" %> end open tag in string2
  13
+open tag in comment <% echo+= '' /*<%*/ %> end open tag in comment
  14
+
  15
+
  16
+close tag in string1 <% echo+='%>'  %> end close tag in string1
  17
+close tag in string2 <% echo+="%>" %> end close tag in string2
  18
+close tag in comment <% echo+= '' /*%>*/ %> end close tag in comment
  19
+
  20
+both tags in string1 <% echo+='<% %>'  %> end both tags in string1
  21
+both tags in string2 <% echo+="<% %>" %> end both tags in string2
  22
+both tags in comment <% echo+= '' /*<% %>*/ %> end both tags  in comment
  23
+
  24
+both tags in comment <% echo+="" ///* */ %> end both tags  in comment
  25
+
  26
+comented below
  27
+<%
  28
+/*
  29
+
  30
+
  31
+open tag in string1 <% echo '<%'  %> end open tag in string1
  32
+open tag in string2 <% echo "<%" %> end open tag in string2
  33
+open tag in comment <% echo / *<%* / %> end open tag in comment
  34
+//
  35
+
  36
+close tag in string1 <% echo '%>'  %> end close tag in string1
  37
+close tag in string2 <% echo "%>" %> end close tag in string2
  38
+close tag in comment <% echo / *%>* / %> end close tag in comment
  39
+
  40
+*/
  41
+%>
  42
+end comented
6  templates/03 instring.html.expected.txt
... ...
@@ -0,0 +1,6 @@
  1
+open tags and close tags are: "<%" "%>"
  2
+---input:
  3
+hello <% code %> world
  4
+----
  5
+-----result-----
  6
+[{"type":"text","s":0,"e":6,"data":"hello "},{"type":"code","s":8,"e":14,"data":" code "},{"type":"text","s":16,"e":22,"data":" world"}]
42  templates/admin.html
... ...
@@ -0,0 +1,42 @@
  1
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2
+<html xmlns="http://www.w3.org/1999/xhtml">
  3
+<head>
  4
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5
+<title>ממשק ניהול</title>
  6
+</head>
  7
+
  8
+<body>
  9
+<table width="100%" border="0" cellspacing="0" cellpadding="0">
  10
+  <tr>
  11
+    <td height="60" bgcolor="#0a1ed4"  style="color:#FFFFFF;padding-left:10px;padding-right:10px;"><span style="font-size:265%;font-style:italic">PIJIMI</span></td>
  12
+    <td height="60" bgcolor="#0a1ed4" dir="rtl" style="color:#FFFFFF;padding-left:10px;padding-right:10px;text-align:right;direction:rtl"><span style="font-size:265%;font-style:italic">ממשק ניהול</span></td>
  13
+  </tr>
  14
+</table>
  15
+
  16
+  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  17
+      <tr>
  18
+        <td dir="rtl" style="padding:10px;text-align:right;direction:rtl"><?=content?></td>
  19
+        <td dir="rtl" width="225" bgcolor="#ccd5f4" style="padding:10px;text-align:right;direction:rtl">
  20
+         <%
  21
+          function print_menu(menu1)
  22
+          {
  23
+           var echo;
  24
+           for(link in menu1)
  25
+           {
  26
+            echo+='<?link='+JSON.stringify(link)+'?>';
  27
+            %>
  28
+            <ul>
  29
+             <li><a href="<?=link.href?>"><?=link.name?></a></li>
  30
+             <%=print_menu(menu1)%>
  31
+            </ul>
  32
+            <%
  33
+           }
  34
+           return echo;
  35
+          }
  36
+          echo+=print_menu(menu);
  37
+         %>
  38
+        </td>
  39
+      </tr>
  40
+</table>
  41
+</body>
  42
+</html>

0 notes on commit e86bdd8

Please sign in to comment.
Something went wrong with that request. Please try again.