Commits

Greg Slepak committed 48e2f56

renamed TEMPLATE_EXTENSION => VIEW_EXTENSION

  • Participants
  • Parent commits 31a66f0

Comments (0)

Files changed (2)

File example-site/dragonfly-framework/config.lsp

 (constant 'DEFAULTRSS "dragonfly_rssfeed")
 ; if non-nil, then all of your views (and partials) must have this extension
 ; ex: ".html"
-(constant 'TEMPLATE_EXTENSION nil)
+(constant 'VIEW_EXTENSION nil)
 
 ;===============================================================================
 ; RESTful Resources
 ;===============================================================================
 
+; TODO: implement this
+
 ; set to nil to disable REST handling
 (constant 'ENABLE_RESTFUL_HANDLER true)
 ; location of RESTful resources (relative to DOCUMENT_ROOT)

File example-site/dragonfly-framework/dragonfly.lsp

 )
 
 (define (view-path viewname)
-	(string VIEWS_PATH "/" viewname (if TEMPLATE_EXTENSION TEMPLATE_EXTENSION ""))
+	(string VIEWS_PATH "/" viewname (if VIEW_EXTENSION VIEW_EXTENSION ""))
 )
 
 (define (partial-path partialname)
-	(string PARTIALS_PATH "/" partialname (if TEMPLATE_EXTENSION TEMPLATE_EXTENSION ""))
+	(string PARTIALS_PATH "/" partialname (if VIEW_EXTENSION VIEW_EXTENSION ""))
 )
 
 ;; @syntax (Dragonfly:display-partial <partial>)