File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 11# nodejs-output-view
22Шаблонизатор для nodejs
3- ``` HTML+PHP
3+ ```
44Автоматически подсвечивает php-тэги в любом текстовом редакторе
55Поддерживает передачу любых переменных в файл html(php):
66 Строки
2828```
2929
3030## Пример кода сервера (файл _ demo/server.js)
31- ``` JavaScript
31+ ``` JS
3232// Устанавливаем конфигурацию
3333myConfig = {};
3434// Конфигурация пользователя (глобальная)
@@ -103,13 +103,15 @@ server.listen(myConfig.data.port);
103103if (myConfig .data .isDebug ) console .log (' Server start on port ' + myConfig .data .port + ' ...' );
104104```
105105## Код отображения (файл _ demo/test.php)
106- ``` HTML+PHP
106+ ``` HTML
107107<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
108108<html xmlns =" http://www.w3.org/1999/xhtml" >
109109 <head >
110110 <meta http-equiv =" Content-Type" content =" text/html; charset=utf-8" />
111111 <title >Пример</title >
112112 <style >
113+ ```
114+ ```css
113115 body {
114116 font-family :' Lucida Console' , Monaco, monospace
115117 }
@@ -122,6 +124,8 @@ if (myConfig.data.isDebug) console.log('Server start on port ' + myConfig.data.p
122124 color :lightgray ;
123125 text-decoration :line-through ;
124126 }
127+ ```
128+ ```HTML + PHP
125129 </style >
126130 </head >
127131
@@ -141,9 +145,13 @@ if (myConfig.data.isDebug) console.log('Server start on port ' + myConfig.data.p
141145 </body >
142146</html >
143147<script >
148+ ```
149+ ```JS
144150 /* Комментарий*/
145151 var a1 = 1; //Комментарий
146152 var a2 = 'http://test.ru'; //Комментарий
153+ ```
154+ ```HTML
147155</script >
148156```
149157## Запуск
You can’t perform that action at this time.
0 commit comments