Giter Site home page Giter Site logo

npm的版本好像是旧的? about mails HOT 14 OPEN

deepure avatar deepure commented on August 12, 2024
npm的版本好像是旧的?

from mails.

Comments (14)

guo-yu avatar guo-yu commented on August 12, 2024

还不能用!最近在重写 playerdouban.fm 基本工作完成了,回头来处理这个项目~

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

0.0.1 发布了,估计有坑,欢迎试用,built-in 模板还没调试好,推荐测试一下 mails-flat 中的 message.html

from mails.

deepure avatar deepure commented on August 12, 2024

cli里的命令是*unix only 的

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

-,- 不会吧。。那可能 acf163 写的那个库不兼容 ಥ_ಥ .........

from mails.

deepure avatar deepure commented on August 12, 2024

watch命令渲染出来的页面不加载css

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

具体是啥情况?查看源码的时候没有内连样式吗?

from mails.

deepure avatar deepure commented on August 12, 2024

http://localhost:3001/message.html

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width" />
  </head>
  <body>
    <table class="body">
      <tr>
        <td class="center" align="center" valign="top">
          <center>  
  <table class="row header">
    <tr>
      <td class="center" align="center">
        <center>
          <table class="container">
            <tr>
              <td class="wrapper last">
                <table class="twelve columns">
                  <tr>
                    <td class="six sub-columns">
                      <img src="http://ww3.sinaimg.cn/large/61ff0de3gw1eapfpspa5tj201e01eweb.jpg" title="mails-flat" alt="mails-flat" />
                    </td>
                    <td class="six sub-columns last" align="right" style="text-align:right; vertical-align:middle;">
                      <span class="template-label">flat email templates for mails</span>
                    </td>
                    <td class="expander"></td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </center>
      </td>
    </tr>
  </table> 
  <br />
  <table class="container main-content">
    <tr>
      <td>
        <!-- content start -->
        <table class="row">
          <tr>
            <td class="wrapper last">
              <table class="twelve columns">
                <tr>
                  <td>
                    <h3 class="title">感谢使用 Mails !</h3>
                    <p class="lead desc">mails 让你发送邮件变得更加简单,优雅。你可以使用 mails 内建的标准模板来发送邮件,也可以快速发布自己的邮件主题。mails 内建的标准邮件模板由 [ink](http://zurb.com/ink) 改造而来,二次开发简易,并且对各个终端的兼容表现优秀。</p>
                  </td>
                  <td class="expander"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <table class="row link">
          <tr>
            <td class="wrapper last">
              <table class="five columns">
                <tr>
                  <td>
                    <a class="button" href="https://github.com/turingou/mails" target="_blank">
                      <table>
                        <tr>
                          <td>
                            fork mails @ Github 
                          </td>
                        </tr>
                      </table>
                    </a>
                  </td>
                  <td class="expander"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <!-- container end below -->
      </td>
    </tr>
  </table> 
  <table class="container footer">
    <tr>
      <td>
        <table class="row">
          <tr>
            <td class="wrapper last">
              <table class="twelve columns">
                <tr>
                  <td>
                    <center>
                      <p>
                          <a href="http://abc.com">Copyright 2013</a> 
                         | 
                        <a class="copyright" href="https://github.com/turingou/mails-flat" taget="_blank">mails-flat theme </a>
                        <a class="copyright" href="https://github.com/turingou/mails" taget="_blank">powered by mails</a>
                    </p></center>
                  </td>
                  <td class="expander"></td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
        <!-- container end below -->
      </td>
    </tr>
  </table> 
          </center>
        </td>
      </tr>
    </table>
  </body>
</html>

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

偏右回复说exeq貌似在windows下没问题,如果有报错的话,可以把报错信息贴到这里:
afc163/exeq#1 (comment)

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

奇怪,重现不出这个问题。
试着 clone 了一下 mails-flat 然后 执行

$ mails watch ./package.json

打开 http://localhost:3001/message.html 一切正常~

from mails.

deepure avatar deepure commented on August 12, 2024

不知道是不是因为我安装的时候包编译有问题,回头换台机器再试试吧。

from mails.

deepure avatar deepure commented on August 12, 2024

exeq除了同步执行cli命令的功能,还能转换*unix命令 to win?

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

这个按道理是底层来做的,如果unix命令win不支持,比如外部命令如awk,肯定会报错

from mails.

yanxyz avatar yanxyz commented on August 12, 2024

我这里 win8/vs2012 express/node.js v0.10.22 均是 64 位

安装 mails 时有些错误消息,涉及下面两个模块:

> [email protected] install f:\mail\node_modules\mails\node_modules\juic
e\node_modules\jsdom\node_modules\contextify
> [email protected] install f:\mail\node_modules\mails\node_modules\tao\node_mo
dules\socket.io\node_modules\socket.io-client\node_modules\ws

安装完成后使用 basic 等主题,没报错,也能发送,但是没有样式。

使用 mails-flat 主题

var mails = require('mails');

mails.render('mails-flat/message', function(err, html){
    if (err) throw err;
    console.log(html);
});

报错

f:\mail\node_modules\mails\node_modules\juice\lib\juice.js:162
     callback(err);
     ^
TypeError: undefined is not a function
    at f:\mail\node_modules\mails\node_modules\juice\lib\juice.js:162:6

    at inlineDocumentWithCb (f:\mail\node_modules\mails\node_modules\ju
ice\lib\juice.js:229:5)
    at f:\mail\node_modules\mails\node_modules\juice\lib\juice.js:144:5

    at f:\mail\node_modules\mails\node_modules\juice\lib\juice.js:307:5

    at f:\mail\node_modules\mails\node_modules\juice\node_modules\batch
\index.js:122:12
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)

from mails.

guo-yu avatar guo-yu commented on August 12, 2024

juice 这个模块在 windows 下似乎安装不成功,我等下用虚拟机测试一下是不是这个模块的兼容性问题,然后给他们提一个pr

from mails.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.