Commit f07373be authored by Zach Knox's avatar Zach Knox
Browse files

why is this giving me an unexpected reserved word error on the import message...

why is this giving me an unexpected reserved word error on the import message of data.js I on't understand please help thank you
parent 91f46452
<body>
{{> weather}}
<p>YThe page did load, your browser is fine.</p>
{{#each data}}
{{> weather}}
{{/each}}
</body>
<template name="weather">
<h1><strong>Fairfax Campus</strong></h1>
<h1><i class="wi wi-day-cloudy wi-fw"></i> 76<i class="wi wi-fahrenheit"></i></h1>
<h2>Feels like 72<i class="wi wi-fahrenheit"></i></h2>
<hr>
<h3><strong>Arlington Campus</strong> <i class="wi wi-day-sunny"></i> 82<i class="wi wi-fahrenheit"></i></h3>
<hr>
<h3><strong>Science and Technology Campus</strong> <i class="wi wi-day-sunny-overcast"></i> 74<i class="wi wi-fahrenheit"></i></h3>
<hr>
<h3><strong>Smithsonian Conservation Biology Institute</strong> <i class="wi wi-day-storm-showers"></i> 68<i class="wi wi-fahrenheit"></i></h3>
<hr>
<h3><strong>Mason Korea</strong> <i class="wi wi-rain-mix"></i> 64<i class="wi wi-fahrenheit"></i></h3>
<hr>
<h3><strong>Mason Ras-Al-Khaimah</strong> <i class="wi wi-hot"></i> 102<i class="wi wi-fahrenheit"></i></h3>
<hr>
<p>{{current}}</p>
</template>
"use strict";
import { Mongo } from 'meteor/mongo';
export const WeatherData = new Mongo.Collection('weather-data');
import { Template } from 'meteor/templating';
import { WeatherData } from '../api/data.js';
import './weather.html';
Template.body.helpers({
current() {
return WeatherData.find({});
},
});
import '../imports/api/weather-data.js';
import '../imports/ui/dataview.js'
if (Meteor.isClient) {
for(var key in LOCATIONS) {
var current = LOCATIONS[key];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment