Custom CSS blocks or stylesheets in templates
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good, but not robust enough for our design.
```html
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```html
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```html
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good, but not robust enough for our design.
```html
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```html
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```html
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
#styles
#css
#python
#templating
How can I add custom CSS blocks to templates or custom stylesheet?
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good, but not robust enough for our design.
```html
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```html
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```html
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good, but not robust enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
#styles
#css
#python
#templating
How can I add custom CSS blocks to templates or custom stylesheet?
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good, but not robust enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
#styles
#css
#python
#templating
How can I add custom CSS blocks to templates or custom stylesheet?
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add a custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
#styles
#css
#python
#templating
How can I add custom CSS blocks to templates or custom stylesheet?
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
#styles
#css
#python
#templating
How can I add custom CSS blocks to templates or custom stylesheet?
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to add custom formatting to my MessageML/Jinja2 templates with CSS.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
Using the Python BDK, I am looking to ad custom formatting to my MessageML/Jinja2 templates.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?
#styles
#css
#python
#templating
How can I add custom CSS blocks to templates or custom stylesheet?
Using the Python BDK, I am looking to ad custom formatting to my MessageML/Jinja2 templates.
1. After doing some testing, I see that I can add inline styles, which is good but not robust, enough for our design.
```
<messageML>
<div style="background-color:red;">...</div>
</messageML>
```
2. I don't seem to be able to add style blocks without the app throwing an exception.
```
<messageML>
<style>
.bg-red {
background-color: red;
}
</style>
<div class="bg-red">...</div>
</messageML>
```
3. Ideally, I would like to be able to add custom stylesheet.
```
<link rel="stylesheet" type ="text/css" href="./static/css/custom.css">
```
Is there a way to acheive the number 3 method? If not, is there a way to achieve the number 2 method?