summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorJustin Page <xjustinpagex@gmail.com>2015-11-28 16:45:46 -0800
committerJustin Page <xjustinpagex@gmail.com>2015-11-28 16:45:46 -0800
commit2bc86a00f10a4c46960a4722160c90f5f4f25c55 (patch)
tree15474e73e2b7009f733f092eb0d8ed441c078229 /README.md
parente0fc310b6e52d2246cf07fd800ac4a70252bc6c3 (diff)
downloadsmarty-2bc86a00f10a4c46960a4722160c90f5f4f25c55.tar.gz
smarty-2bc86a00f10a4c46960a4722160c90f5f4f25c55.tar.bz2
smarty-2bc86a00f10a4c46960a4722160c90f5f4f25c55.zip
Wrap JSON examples in language specific code wrap
This allows Github or any repo system to parse and display correctly code examples by proper wrappers.
Diffstat (limited to 'README.md')
-rw-r--r--README.md53
1 files changed, 32 insertions, 21 deletions
diff --git a/README.md b/README.md
index fd625d4d..1a060f3f 100644
--- a/README.md
+++ b/README.md
@@ -12,43 +12,54 @@ The "smarty/smarty" package will start at libs/.... subfolder.
To get the latest stable version of Smarty 3.1 use
- "require": {
- "smarty/smarty": "~3.1"
- }
+```json
+"require": {
+ "smarty/smarty": "~3.1"
+}
+```
in your composer.json file.
-
- To get the trunk version use
- "require": {
- "smarty/smarty": "~3.1@dev"
- }
+To get the trunk version use
+
+```json
+"require": {
+ "smarty/smarty": "~3.1@dev"
+}
+```
For a specific version use something like
- "require": {
- "smarty/smarty": "3.1.19"
- }
+```json
+"require": {
+ "smarty/smarty": "3.1.19"
+}
+```
PHPUnit test can be installed by corresponding composer entries like
- "require": {
- "smarty/smarty-phpunit": "3.1.19"
- }
+```json
+"require": {
+ "smarty/smarty-phpunit": "3.1.19"
+}
+```
Similar applies for the lexer/parser generator
- "require": {
- "smarty/smarty-lexer": "3.1.19"
- }
+```json
+"require": {
+ "smarty/smarty-lexer": "3.1.19"
+}
+```
Or you could use
- "require": {
- "smarty/smarty-dev": "3.1.19"
- }
+```json
+"require": {
+ "smarty/smarty-dev": "3.1.19"
+}
+```
Which is a wrapper to install all 3 packages
-
Composer can also be used for Smarty2 versions 2.6.24 to 2.6.28