MJML looks great for what I want to use it for.
I want to create a set of templates so that it's much easier for my co-workers to build emails in the future. However, the 'basic' and 'gallery' sections don't have an option to be populated, can I create my own templates for these sections? It'd be nice to start a project without having to duplicate an existing one.
It'd be great if this is achievable without having to download the source code and rebuild it,
Thanks.
Although not explicitly mentioned, I suppose you're referring to Mailjet's gallery of templates.
You cannot add your own templates to the default Mailjet gallery. However, it's easy to create your own templates that will then appear under "My templates".
To do so, simply create a template in drag and drop, import a MJML file (that you can edit with the MJML editor or in drag and drop), or import a HTML file.
Finally, if you need to share those templates:
Inside the same Mailjet Master Account: you can share templates from a master account to each subaccount (see doc)
Between two Mailjet accounts that have nothing to do together: export the template as a MJML file and reimport it in the new account (you'll be able to edit it in MJML or drag-and-drop). See doc
Related
According to documentation I had to create a PULL_REQUEST_TEMPLATE folder in .github folder.
Then add my pull_request_first_template and pull_request_second_template.md into PULL_REQUEST_TEMPLATE folder.
When I try to open a new PR, no templates are being displayed, not speaking of even switching between them.
Seems like templates are not displaying at all. Is there a solution to that?
I'm also wondering, I tried it but it doesn't seem to work. After more tests, it seems that templates below the PULL_REQUEST_TEMPLATE folder are not selected or even selectable by default, and can only be directly addressed via the URL parameter. The only template selected by default has been .github/pull_request_template.md.
Short answer, yes there is a solution to this. However, there are a few steps to make this possible:
Create either a .github/ or docs/ directory in your root directory.
Create a directory inside called PULL_REQUEST_TEMPLATE.
Create as many templates as you'd like within this directory, let's say template_one.md and template_two.md.
Begin making a pull request and append the URL with: "&template=template_one.md"
My example URL looks like: https://github.com/<org>/<repo-name>/compare/main...test-branch?template=template_one.md
You can create a manual template selection, such that at least developers who open a PR can click on a link to get to their respective template:
Assuming you have two templates group_a_template.md and group_b_template.md under .github/PULL_REQUEST_TEMPLATE
Create the default template .github/pull_request_template.md with the following content
Please go the the `Preview` tab and select the appropriate sub-template:
* [Group A](?expand=1&template=group_a_template.md)
* [Group B](?expand=1&template=group_b_template.md)
In this way, people who open a PR interactively in the UI will first get to the default template and can open their respective target template from the "Preview" view.
Not optimal, but more convenient than patching the URL manually every time you submit a PR.
Does anyone know how to remove previously added personal template form Visio (plan2)? It seems this is not as straightforward as I would expect...
Many thanks.
Please check in File location window field Templates. You can call this window with these steps
Select tab File at ribbon
Select Options in bottom of list
Select Advanced
Select File locations in bottom of list
Please check: Is your unwanted document located in folder which you can find in Templates field in File locations window ?
I did some additional research to find out that while adding .vtpx template, visio converts it to .vstx and stores it (in my case) in Custom Office Templates folder.
All I had to do is remove the corresponding .vstx from that folder and the template disappeared form Personal Templates tab.
Not sure if Custom Office Templates is the default location in all cases, so better search for your [templatename].vstx on your drive.
Credit for idea goes to #Surrogate who hinted that you could define folder for templates. Thanks!
I do apologize if similar question already put, but I haven't found one.
I would like to change the default project description file name (called README.md) to be a custom name (let's say XXX.md) and I wonder if it is possible to be the XXX.md the initial readme file for the project (typical situation: you open the project Code page and you will see the content of XXX.md down at bottom).
I would like to verify if this approach possible in general, but I am mainly interested in Github and Bitbucket services. I briefly checked project settings and I cannot find there such customization. Is it even possible?
GitHub, at least, doesn't provide the ability to do this. It is possible to use a different format (e.g., README.asciidoc or README.rst), but the root file must be called README.
Note that you can include other text markup documents like this and they'll be rendered if they're visited, it's just that they won't appear at the bottom of the file listing like a README will.
I'm developing a new Hugo site and in this case I thought to create also a template so.I can use for future site.
Well in the template there are tons of vendor files and library because depending of the pages that the site will implement these library will be used. The problem is on the deploy. For example I use Line icons library that has a lot of .png files. (For example 200 files).
Well in the template I put all the files but could happen that in the site that implement this template I use only five icons. Is there a way that look around the final HTML and the usage of the icons and delete in the public folder the not necessary files?
Not directly.
You would need to add an utility script to your template, in order for any user implementing said template to be able to call this script on demand.
That script should then be able to:
analyze the HTML files generated in public_html
cleanup the icons accordingly
I am trying to find a MediaWiki bot or extension that would do the following:
I sometimes copy external content to MediaWiki to display it in proper context and to make it searchable. That is not very DRY.
I would like to keep a live link to the original content using a special tag and have a bot update the MediaWiki page if the original content changes.
For instance, the snippet could be a configuration file in Subversion that I want to reference in documentation. I would like to do something like:
<external-content
url="http://svn/config.txt"
start="#begin snippet"
end="#end snippet">
</external-content>
The MediaWiki bot would download http://svn/config.txt, retain everything between the #begin snippet and #end snippet comments, and paste the result right between the external-content tags.
This way I can be sure that as I change the config.txt, my MediaWiki documentation stays in sync.
There are numerous other uses. I am not looking only into referencing Subversion content, there are many other web-based systems with data I would like to integrate in this manner.
Does anyone know of a bot that would do this?
You could probably do this with a MediaWiki parser tag extension. In fact, the "Include" extension seems to do something very much like what you're asking for.