airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sma...@apache.org
Subject [21/33] airavata-php-gateway git commit: Markdown capability added to all pages themes/views. Any HTML page can now be written in Markdown. Important: Composer Update required after git update
Date Fri, 04 Dec 2015 19:56:45 GMT
Markdown capability added to all pages themes/views.
Any HTML page can now be written in Markdown.
Important: Composer Update required after git update


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/c4906611
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/c4906611
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/c4906611

Branch: refs/heads/master
Commit: c4906611c7af796aadf3d498aaeaeaa119a7d197
Parents: a3a066f
Author: Nipurn Doshi <Nipurn Doshi>
Authored: Mon Nov 23 13:47:50 2015 -0500
Committer: Nipurn Doshi <Nipurn Doshi>
Committed: Mon Nov 23 13:47:50 2015 -0500

----------------------------------------------------------------------
 app/config/app.php                      |  2 ++
 app/config/packages/markdown/config.php | 30 ++++++++++++++++++++++++++++
 app/routes.php                          |  6 +-----
 composer.json                           |  3 ++-
 4 files changed, 35 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c4906611/app/config/app.php
----------------------------------------------------------------------
diff --git a/app/config/app.php b/app/config/app.php
index bc79a65..27f995f 100755
--- a/app/config/app.php
+++ b/app/config/app.php
@@ -124,6 +124,7 @@ return array(
         'Wsis\WsisServiceProvider',
         'Airavata\AiravataServiceProvider',
         'Teepluss\Theme\ThemeServiceProvider',
+        'GrahamCampbell\Markdown\MarkdownServiceProvider',
     ),
 
     /*
@@ -193,6 +194,7 @@ return array(
         'WSIS' => 'Wsis\Facades\Wsis',
         'Airavata' => 'Airavata\Facades\Airavata',
         'Theme' => 'Teepluss\Theme\Facades\Theme',
+        'Markdown' => 'GrahamCampbell\Markdown\Facades\Markdown',
     ),
 
 );

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c4906611/app/config/packages/markdown/config.php
----------------------------------------------------------------------
diff --git a/app/config/packages/markdown/config.php b/app/config/packages/markdown/config.php
new file mode 100644
index 0000000..a53ddb5
--- /dev/null
+++ b/app/config/packages/markdown/config.php
@@ -0,0 +1,30 @@
+<?php
+
+/*
+ * This file is part of Laravel Markdown.
+ *
+ * (c) Graham Campbell <graham@mineuk.com>
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+return [
+
+    /*
+    |--------------------------------------------------------------------------
+    | Enable The Engines
+    |--------------------------------------------------------------------------
+    |
+    | This option specifies if the view engines are enabled so you can write
+    | markdown views and have them compiled into html. The following extensions
+    | are currently supported: ".md", ".md.php", and ".md.blade.php". You may
+    | disable the engines if they are conflicting with another package.
+    |
+    | Default: true
+    |
+    */
+
+    'engines' => true,
+
+];

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c4906611/app/routes.php
----------------------------------------------------------------------
diff --git a/app/routes.php b/app/routes.php
index 41f06ff..502604a 100755
--- a/app/routes.php
+++ b/app/routes.php
@@ -263,11 +263,7 @@ Route::get("airavata/down", function () {
 */
 
 Route::get("testjob", function () {
-    if( is_dir( URL::to('/') . '/../themes/seagrid' ) )
-    	print_r("test yes");
-    else
-    	print_r("test no"); 
-    exit;
+    return Markdown::render( View::make('edit-mode'));
 });
 
 /*handling errors on production */

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/c4906611/composer.json
----------------------------------------------------------------------
diff --git a/composer.json b/composer.json
index 4ef0089..2b07d51 100755
--- a/composer.json
+++ b/composer.json
@@ -7,7 +7,8 @@
         "laravel/framework": "4.2.*",
         "teepluss/theme": "1.*@dev",
         "phpmailer/phpmailer": "v5.2.13",
-        "moon/properties": "0.1"
+        "moon/properties": "0.1",
+        "graham-campbell/markdown": "*"
     },
     "autoload": {
         "classmap": [


Mime
View raw message