Tw1ddle/geometrize-haxe

View on GitHub
dox/themes/samcodes/templates/abstract.mtt

Summary

Maintainability
Test Coverage
::use 'main.mtt'::
    <div class="page-header">
        <span ::cond api.isDefined("source-path"):: class="viewsource">
            <a href="::api.getSourceLink(type)::" class="btn btn-medium"><i class="fa fa-eye"></i> View source</a>
        </span>
        <h1><small>abstract</small> ::api.getPathName(type.path)::$$printTypeParams(::type.params::)($$printLinkedType(::type.athis::))</h1>
        $$printPackage(::type::)
        <h4 ::cond (type.from != null || type.to != null)::>
            ::foreach t type.from::
                ::if t.field == null::
                <small>::if(repeat.t.index==0)::from ::end::$$printLinkedType(::t.t::)::if((type.from.length!=1)&&(repeat.t.index<type.from.length-1))::, ::end::</small>
                ::end::
            ::end::
            ::foreach t type.to::
                ::if t.field == null::
                <small>::if(repeat.t.index==0):: to ::end::$$printLinkedType(::t.t::)::if((type.to.length!=1)&&(repeat.t.index<type.to.length-1))::, ::end::</small>
                ::end::
            ::end::
        </h4>
        $$printModule(::type.module::)
        $$printPlatforms(::type.platforms::,::true::)
    </div>
    
    <div class="body">
        <div class="doc doc-main" ::cond type.doc != null::>
            <div class="indent">
                ::raw type.doc::
            </div>
        </div>
    
        ::if type.impl != null::
            $$printClassBody(::type.impl::)
        ::end::
    </div>
::end::