File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
# nodejs-output-php
2
2
Шаблонизатор для nodejs
3
- ```
3
+ ``` HTML+PHP
4
4
Автоматически подсвечивает php-тэги в любом текстовом редакторе
5
5
Поддерживает передачу любых переменных в файл html(php):
6
6
Строки
28
28
```
29
29
30
30
## Пример кода сервера (файл server.js)
31
- ``` js
31
+ ``` JavaScript
32
32
// Устанавливаем конфигурацию
33
33
myConfig = {};
34
34
// Конфигурация пользователя (глобальная)
@@ -104,7 +104,7 @@ server.listen(myConfig.data.port);
104
104
if (myConfig .data .isDebug ) console .log (' Server start on port ' + myConfig .data .port + ' ...' );
105
105
```
106
106
## Код отображения (файл test.php)
107
- ``` html
107
+ ``` HTML+PHP
108
108
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
109
109
<html xmlns =" http://www.w3.org/1999/xhtml" >
110
110
<head >
You can’t perform that action at this time.
0 commit comments