Skip to content

PlutoLang/pluto-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Apache Configuration

<VirtualHost *:80>
	ServerName YOUR_DOMAIN_HERE
	DocumentRoot /var/www/YOUR_DOMAIN_HERE
</VirtualHost>
<Directory /var/www/YOUR_DOMAIN_HERE>
	RewriteEngine on
	RewriteCond %{REQUEST_FILENAME} -f
	RewriteRule ^(.*).pluto$ /pluto_backend/invoke.php [E=INVOKE_FILENAME:%{REQUEST_FILENAME}]
	RewriteCond %{REQUEST_FILENAME} -f
	RewriteRule ^(.*).plutw$ /pluto_backend/invoke.php [E=INVOKE_FILENAME:%{REQUEST_FILENAME}]
	RewriteCond %{REQUEST_FILENAME}\.pluto -f
	RewriteRule ^(.*)$ /pluto_backend/invoke.php [E=INVOKE_FILENAME:%{REQUEST_FILENAME}.pluto]
	RewriteCond %{REQUEST_FILENAME}\.plutw -f
	RewriteRule ^(.*)$ /pluto_backend/invoke.php [E=INVOKE_FILENAME:%{REQUEST_FILENAME}.plutw]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteCond %{REQUEST_FILENAME}index\.pluto -f
	RewriteRule ^(.*)$ /pluto_backend/invoke.php [E=INVOKE_FILENAME:%{REQUEST_FILENAME}index.pluto]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteCond %{REQUEST_FILENAME}index\.plutw -f
	RewriteRule ^(.*)$ /pluto_backend/invoke.php [E=INVOKE_FILENAME:%{REQUEST_FILENAME}index.plutw]
</Directory>

What is .plutw?

This file extension indicates that the file should be processed by pluto-templating-engine, allowing for code like this:

<p>Hello from {{ _SERVER.REQUEST_URI }}</p>

See also: example.plutw.

About

Pluto? In my website backend? — It's more likely than you think.

Resources

Stars

Watchers

Forks