Skip to content

[Trevi] Export Module (node.js) #13

@Yoseob

Description

@Yoseob

Nodejs 에서 app으로 사용되는 모듈은 export module로 Required를 호출하여 사용합니다.
Nodejs의 설계를 벤치마킹하고 있지만. 언어의 특성상 완벽하게 유사한 방식은 힘들것 같아서
RouteAble 클래스 상속을 통하여 오버라이딩 함수(prepare)에서 자신을 변수처럼 사용합니다.
이것에 대해서 피드백을 듣고 싶습니다.....

사용 예
https://github.com/Yoseob/Trevi/blob/unstable/Trevi_ver_lime/Lime.swift#L18
RouteAble
https://github.com/Yoseob/Trevi/blob/unstable/Trevi/Router/RouteAble.swift

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions