diff --git a/repository/Brea/BreaApp.class.st b/repository/Brea/BreaApp.class.st index 73c42e7..d2ffe7a 100644 --- a/repository/Brea/BreaApp.class.st +++ b/repository/Brea/BreaApp.class.st @@ -9,6 +9,30 @@ Class { #category : #Brea } +{ #category : #accessing } +BreaApp >> appName [ + ^ self name asCamelCase +] + +{ #category : #accessing } +BreaApp >> defaultView [ + ^ ' + + + + + + + Hello from', self appName, ' + + +
+

Hello world!

+
+ +' +] + { #category : #accessing } BreaApp >> folder [ ^ folder @@ -21,7 +45,10 @@ BreaApp >> folder: aFileDirectory [ { #category : #accessing } BreaApp >> launch [ - ^ MiniDocsServer singleton + | defaultRoute | + defaultRoute := 'http://localhost:',self server server port asString, '/', self appName. + self server GET: self appName -> self defaultView. + GoogleChrome openWindowOn: defaultRoute ] { #category : #accessing }