src/AbstractApp.php
public static function template(
		\Slim\Slim $slim, $name, $routeName = null
	) {
		$routeName = $routeName ?: $name;

		$slim->get( $name, function () use ( $slim, $name ) {
			$slim->render( "{$name}.html" );
		} )->name( $routeName );
	}
public static function template(
		\Slim\Slim $slim, $name, $routeName = null
	) {
		$routeName = $routeName ?: $name;

		$slim->get( $name, function () use ( $slim, $name ) {
			$slim->render( "{$name}.html" );
		} )->name( $routeName );
	}
public static function template ( \ Slim \ Slim $ slim , $ name , $ routeName = null ) { $ routeName = $ routeName ? : $ name ; $ slim -> get ( $ name , function ( ) use ( $ slim , $ name ) { $ slim -> render ( "{$name}.html" ) ; } ) -> name ( $ routeName ) ; }
Add a static template route to the app.
@param \Slim\Slim $slim App
@param string $name Page name
@param string $routeName Name for the route
Add a static template route to the app .