Skip to content

Instantly share code, notes, and snippets.

@phalcon
Created June 29, 2013 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phalcon/5889140 to your computer and use it in GitHub Desktop.
Save phalcon/5889140 to your computer and use it in GitHub Desktop.
{%- macro fibonnaci(n) %}
{%- if n == 0 %}
{%- return 0 %}
{%- elseif n == 1 %}
{%- return 1 %}
{%- else %}
{%- return fibonnaci(n - 1) + fibonnaci(n - 2) %}
{%- endif %}
{%- endmacro %}
{{- fibonnaci(17) -}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment