【发布时间】:2013-12-11 02:16:11
【问题描述】:
我正在尝试使用引导程序为我的电子邮件模板赋予一种样式,但每次 laravel 正在做的事情时,它都会解析模板并在有 ' 的地方添加一个 '3D' >=' 在模板中,导致style=3D"table"而不是style="table",这里是邮件源代码的sn-p
<div class=3D"well">
<table class=3D"table table-bordered table-striped" id=3D'table'>
<thead>
<th>Group Name</th>
<th>Kpi Name</th>
<th>User Name</th>
</thead>
<tbody>
</tbody>
</table>
</div>
这是我的模板代码
<html lang="en-US">
<head>
<meta charset="utf-8">
{{ HTML::style('app\\client\\css\\bootstrap.css') }}
{{ HTML::script('app\\javascripts\\js\\jquery-1.8.3.min.js') }}
{{ HTML::script('app\\client\\js\\bootstrap.min.js') }}
<style>
#table {
border: 2px solid #ccc;
border-radius: 5px;
}
</style>
</head>
<body>
<div class="well">
<table class="table table-bordered table-striped" id='table'>
<thead>
<th>Group Name</th>
<th>Kpi Name</th>
<th>User Name</th>
</thead>
<tbody>
@foreach ($groups as $group)
<tr>
<td>{{ $group['name'] }}</td>
<td>
<ul>
@if (array_key_exists('kpis', $group))
@foreach ($group['kpis'] as $kpi)
<li>{{ Kpi::find($kpi['kpi'])->title }}</li>
@endforeach
@endif
</ul>
</td>
<td>
<ul>
@if (array_key_exists('users', $group))
@foreach ($group['users'] as $user)
<li>{{ User::find($user['user'])->fName.' '.User::find($user['user'])->lName }}</li>
@endforeach
@endif
</ul>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
<footer>
<br>
<br>
Regards,<br>
<strong>Yogesh Joshi</strong><br>
Group Leader
</footer>
</body>
</html>
是否有我遗漏的东西或 laravel 或邮件服务器(gmail 或 hotmail)有问题,是的,我已经交叉检查了脚本和样式文件,它们确实存在于公共文件夹中。
请帮助或提供任何替代方法。
【问题讨论】:
标签: css email laravel-4 blade email-templates