{% import "path/filepath" %} {% import "github.com/bouncepaw/mycorrhiza/cfg" %} {% import "github.com/bouncepaw/mycorrhiza/hyphae" %} {% import "github.com/bouncepaw/mycorrhiza/user" %} {% import "github.com/bouncepaw/mycorrhiza/util" %} {% func BaseHTML(title, body string, u *user.User, headElements ...string) %} {%s title %} {% for _, el := range headElements %}{%s= el %}{% endfor %}
{%s= body %} {%= CommonScripts() %} {% endfunc %} {% func TitleSearchHTML(query string, generator func(string) <-chan string) %}

Search results for ‘{%s query %}’

Every hypha name has been compared with the query. Hyphae that have matched the query are listed below.

{% endfunc %} It outputs a poorly formatted JSON, but it works and is valid. {% func TitleSearchJSON(query string, generator func(string) <-chan string) %} {% code // Lol counter := 0 %} { "source_query": "{%s query %}", "results": [ {% for hyphaName := range generator(query) %} {% if counter > 0 %}, {% endif %}{ "canonical_name": "{%s hyphaName %}", "beautiful_name": "{%s util.BeautifulName(hyphaName) %}", "url": "{%s cfg.URL + "/hypha/" + hyphaName %}" }{% code counter++ %} {% endfor %} ] } {% endfunc %} {% func HelpHTML(content string) %}
{%s= content %}
{%s= helpTopicsHTML() %}
{% endfunc %} {% func HelpEmptyErrorHTML() %}

This entry does not exist!

Try finding a different entry that would help you.

If you want to write this entry by yourself, consider contributing to Mycorrhiza Wiki directly.

{% endfunc %} {% func helpTopicsHTML() %} {% endfunc %} {% func UserListHTML() %}

List of users

{% code var ( admins = make([]string, 0) moderators = make([]string, 0) editors = make([]string, 0) ) for u := range user.YieldUsers() { switch u.Group { case "admin": admins = append(admins, u.Name) case "moderator": moderators = append(moderators, u.Name) case "editor", "trusted": editors = append(editors, u.Name) } } %}

Admins

    {% for _, name := range admins %}
  1. {%s name %}
  2. {% endfor %}

Moderators

    {% for _, name := range moderators %}
  1. {%s name %}
  2. {% endfor %}

Editors

    {% for _, name := range editors %}
  1. {%s name %}
  2. {% endfor %}
{% endfunc %} {% func HyphaListHTML() %}

List of hyphae

This wiki has {%d hyphae.Count() %} hyphae.

{% endfunc %} {% func AboutHTML() %}

About {%s cfg.WikiName %}

  • Mycorrhiza Wiki version: 1.4.0
  • {%- if cfg.UseAuth -%}
  • User count: {%dul user.Count() %}
  • Home page: {%s cfg.HomeHypha %}
  • Administrators: {%- for i, username := range user.ListUsersWithGroup("admin") -%} {%- if i > 0 -%} {%- endif -%} {%s username %}{%- endfor -%}
  • {%- else -%}
  • This wiki does not use authorization
  • {%- endif -%}

See /list for information about hyphae on this wiki.

{% endfunc %} {% func CommonScripts() %} {% for _, scriptPath := range cfg.CommonScripts %} {% endfor %} {% endfunc %}