Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add jinja support to leader_head.content and letter_head.footer #3493

Merged
merged 7 commits into from
Jun 19, 2017
Merged

Add jinja support to leader_head.content and letter_head.footer #3493

merged 7 commits into from
Jun 19, 2017

Conversation

ci2014
Copy link
Contributor

@ci2014 ci2014 commented Jun 16, 2017

Add jinja support to leader_head.content and letter_head.footer

  1. Create Letter Head with jinja tags

image

  1. Print something with letter head

image

As you can see, its working fine.

Add jinja support to leader_head.content and letter_head.footer
convert_markdown(doc, meta) was missing my mistake
Considering that letter_head could be empty and cleaner code
@ci2014 ci2014 closed this Jun 16, 2017
@ci2014 ci2014 reopened this Jun 16, 2017
@ci2014 ci2014 changed the title Patch 1 Add jinja support to leader_head.content and letter_head.footer Jun 16, 2017
@@ -136,8 +136,14 @@ def get_template_from_string():

letter_head = frappe._dict(get_letter_head(doc, no_letterhead) or {})

if 'content' in letter_head:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be if letter_head.content - letter_head will have a property content which can be None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, that was my first aproach. I see you've changed it already.

rmehta and others added 2 commits June 16, 2017 17:43
@rmehta rmehta merged commit f3998a1 into frappe:develop Jun 19, 2017
@ci2014 ci2014 deleted the patch-1 branch June 19, 2017 07:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants