slitaz-configs rev 276
Add: Small templates for users.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Mon Mar 28 22:16:02 2016 -0300 (2016-03-28) |
parents | f7bdf041bb02 |
children | 616af0fa4abf |
files | rootfs/etc/skel/Templates/CGI.cgi rootfs/etc/skel/Templates/CSS.css rootfs/etc/skel/Templates/HTML.html rootfs/etc/skel/Templates/JAVASCRIPT.js rootfs/etc/skel/Templates/JSON.json rootfs/etc/skel/Templates/PERL.pl rootfs/etc/skel/Templates/PHP.php rootfs/etc/skel/Templates/PYTHON.py rootfs/etc/skel/Templates/RUBY.rb rootfs/etc/skel/Templates/SH.sh |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/rootfs/etc/skel/Templates/CGI.cgi Mon Mar 28 22:16:02 2016 -0300 1.3 @@ -0,0 +1,7 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +echo "Content-type: text/html; charset=UTF-8" 1.7 +echo 1.8 +echo "Hello World!" 1.9 +echo 1.10 +echo 1.11 \ No newline at end of file
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/rootfs/etc/skel/Templates/CSS.css Mon Mar 28 22:16:02 2016 -0300 2.3 @@ -0,0 +1,1 @@ 2.4 +@charset "utf-8";
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/rootfs/etc/skel/Templates/HTML.html Mon Mar 28 22:16:02 2016 -0300 3.3 @@ -0,0 +1,24 @@ 3.4 +<!DOCTYPE html> 3.5 +<html> 3.6 +<head> 3.7 + 3.8 +<meta charset="utf-8" /> 3.9 +<meta http-equiv="X-UA-Compatible" content="IE=Edge" /> 3.10 +<meta name="viewport" content="width=device-width, initial-scale=1" /> 3.11 + 3.12 +<title>Title</title> 3.13 +<meta name="author" content="..." /> 3.14 +<meta name="description" content="..." /> 3.15 +<meta name="keywords" content="a, b, c" /> 3.16 +<meta name="robots" content="index, follow" /> 3.17 + 3.18 +<link rel="shortcut icon" href="favicon.png" /> 3.19 +<link rel="stylesheet" href="style.css" /> 3.20 + 3.21 +</head> 3.22 +<body> 3.23 + 3.24 +<h1>Hello World!</h1> 3.25 + 3.26 +</body> 3.27 +</html>
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/rootfs/etc/skel/Templates/JAVASCRIPT.js Mon Mar 28 22:16:02 2016 -0300 4.3 @@ -0,0 +1,5 @@ 4.4 +// JavaScript File 4.5 + 4.6 +function() { 4.7 + ... 4.8 +} 4.9 \ No newline at end of file
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/rootfs/etc/skel/Templates/JSON.json Mon Mar 28 22:16:02 2016 -0300 5.3 @@ -0,0 +1,7 @@ 5.4 +{"info": [ 5.5 + { 5.6 + "author": Your Name, 5.7 + "email": your-email@service.domain, 5.8 + "url": your-url.domain 5.9 + } 5.10 +]}; 5.11 \ No newline at end of file
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/rootfs/etc/skel/Templates/PERL.pl Mon Mar 28 22:16:02 2016 -0300 6.3 @@ -0,0 +1,6 @@ 6.4 +!#/usr/bin/perl 6.5 + 6.6 +use strict; 6.7 +use warnings; 6.8 + 6.9 +say "Hello World!"
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/rootfs/etc/skel/Templates/PHP.php Mon Mar 28 22:16:02 2016 -0300 7.3 @@ -0,0 +1,18 @@ 7.4 +<?php #UTF-8 7.5 + 7.6 + header('Content-Type: text/html; charset=utf-8'); 7.7 + header('Content-language: en'); 7.8 + 7.9 + /* 7.10 + * @author: ... 7.11 + * @email : ... 7.12 + * @url : ... 7.13 + * --------------------- 7.14 + * @version : ... 7.15 + * @description: ... 7.16 + * --------------------- 7.17 + */ 7.18 + 7.19 + echo "Hello World!"; 7.20 + 7.21 +?> 7.22 \ No newline at end of file
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/rootfs/etc/skel/Templates/PYTHON.py Mon Mar 28 22:16:02 2016 -0300 8.3 @@ -0,0 +1,5 @@ 8.4 +#!/usr/bin/env python 8.5 + 8.6 +print 8.7 +print "Hello World!" 8.8 +print