Hello from Vuepress
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Emoji
We did it! 🎉 💯
Code Snippets
js
export default {
name: 'MyComponent',
// ...
}
ts
const x: string = 'string';
rust
use lettre::{SmtpClient, Transport};
use lettre_email::EmailBuilder;
fn sendmail_with_file() {
let mut sender = SmtpClient::new_unencrypted_localhost().unwrap().transport();
let email = EmailBuilder::new()
.from("from-address@localhost")
.to("to-address@localhost")
.subject("Message-ID")
.body("Hello rust mail body".to_string())
.build().expect("fail to build email");
let result = sender.send(email.into());
println!("{}", result.is_ok());
}
fn main() {
sendmail_with_file();
}
html
<ul>
<li v-for="todo in todos" :key="todo.id">
{{ todo.text }}
</li>
</ul>
js
export default { // Highlighted
data () {
return {
msg: `Highlighted!
This line isn't highlighted,
but this and the next 2 are.`,
motd: 'VitePress is awesome',
lorem: 'ipsum'
}
}
}