CaryLandholt / ng-classify

Convert CoffeeScript classes to AngularJS modules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

proposal for multi module support

tardyp opened this issue · comments

Hi, Cary

We are looking at using ng-classify in buildbot, but we are not very happy about the filePath based approach

what about something with a syntax like:

class Home extends buildbot.common.Controller
constructor: ($log) ->
$log.info 'homeController instantiated'

or:

class Home extends Controller("buildbot.common")
constructor: ($log) ->
$log.info 'homeController instantiated'

which are both "valid" coffee syntax

Thanks for the suggestions, @tardyp!

I have included support for multiple apps via the following syntax:

class Home extends Controller('buildbot.common')
  constructor: ($log) ->
    $log.info 'homeController instantiated'