find_usages_html

   Usages of this macro
... in macro_viewer.naml
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
<macro name="find_usages_html" requires="macro_source">
    <n.compile_if_needed
Macro
/>
    <n.naml_tools
Macro
Parameters: do
.>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <meta name="robots" content="noindex,nofollow"/>
                <n.title
Macro
Requires: macro_source
Parameters: text
.>Usages of <n.name
Binary
Namespace: MacroSourceNamespace
/></n.title.>
                <style type="text/css">
                    div.usage-path { padding: .5em; }
                </style>
            </head>
            <body>
                <n.macro_viewer_header
Macro
Parameters: text
.>
                    Usages of <n.name
Binary
Namespace: MacroSourceNamespace
/>
                </n.macro_viewer_header.>
 
                <n.macro_usages
Binary
Namespace: MacroSourceNamespace
Parameters: do
.>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.has_more_elements
Binary
Namespace: ListSequence
Parameters: n
>
                        <then>
                            <p><b>No usages found.</b> Some possible reasons are:</p>
                            <ul>
                                <li>This macro is called directly from the URL or from the java code;</li>
                                <li>This macro is not used at all;</li>
                            </ul>
                            <p>&laquo; <a href="javascript:void history.back()">Go Back</a></p>
                        </then>
                    </n.if.not.has_more_elements>
 
                    <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                        <div class="[n.alternate
Macro
Parameters: second_value, var, first_value
 var='usages' first_value='usage-path' second_value='usage-path light-bg-color'/]">
                            <n.remove_spaces_between_tags
Macro
Parameters: text
.>
                                <n.current_usage
Binary
Namespace: MacroUsages
Parameters: do
.loop
Macro
Requires: sequence
Parameters: by, do
.>
                                    <a href="[n.current_command
Binary
Namespace: Commands
Parameters: do
.command_path
Macro
Requires: command_info
/]"><n.current_command
Binary
Namespace: Commands
Parameters: do
.name
Binary
Namespace: CommandInfo
/></a>
                                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_more_elements
Binary
Namespace: ListSequence
Parameters: n
>
                                        <then><span style="padding:0 .5em">&rsaquo;</span></then>
                                    </n.if.has_more_elements>
                                </n.current_usage.loop.>
                            </n.remove_spaces_between_tags.>
                        </div>
                    </n.loop.>
                </n.macro_usages.>
            </body>
        </n.html>
    </n.naml_tools.>
</macro>