Sign inSign up

calfater/transpiler-php

By calfater

Updated over 7 years ago

Image
0

277

calfater/transpiler-php repository overview

_

This transpile :

  • pug files into html and eval php code
  • less into css

pug

pug files must be located in pages folder /data/pages/a file.pug and can be accessed with url : http://domain/a file.html

/!\ Note the missing page/ in the url.

less

less files can be located anywhere /data/somewhere/my style.less and can be accessed with url : http://domain/somewhere/my style.css

php

php files /data/a/script.php can be accessed directly with url : http://domain/somewhere/**a/script.php**

html

html files /data/pages/file.html or /data/file.html can both be accessed directly with url : http://domain/**file.html**

other resources

other resources files /data/a/resource.ext can be accessed directly with url : http://domain/somewhere/**a/resource.ext**

Run

docker run -d -p 3001:80 -v /tmp/data:/data --name transpiler-php calfater/transpiler-php

Tag summary

Content type

Image

Digest

Size

180.1 MB

Last updated

over 7 years ago

docker pull calfater/transpiler-php