/service-template

service email template jinja

Primary LanguageJinjaGNU General Public License v3.0GPL-3.0

service-template

1. Clone repo

2. update variable file

vim vars.yml

  1. Example

    service_display_name: "{{ 'Type static name' | string }}"
    or
    service_display_name: "{{ '{{service_display_name}}' | string }}"
    
    headings:
      - title: Add heading here
        table:
          - row: Row with one set
            column:
              - type: Type1
                details: "{{ '{{ Type your variable here }}' | string }}"
    
              - type: Type2
                details: "{{ 'Type your string here' | string }}"
    
      - title: Add second heading here
        table:
          - row: Row with one set
            column:
              - type: Type1
                details: "{{ '{{ Type your variable here }}' | string }}"

3. execute following command

ansible-playbook playbook.yml

4. Open in browser

open service-ready-message-template.html in browser

5. Web Output

service template 1

service template 2

Note
now you can use the content of file as template